From f8cd3430163bde5e8ade2a2245437710b2ec048d Mon Sep 17 00:00:00 2001 From: Bernhard Sessler Date: Thu, 12 Dec 2013 10:17:31 +0100 Subject: src: Fix build with Borland C++ compiler Change-Id: I0a182186c396f2e45bec76c83506f765f2462b3c Signed-off-by: Bernhard Sessler Reviewed-on: https://gerrit.libreoffice.org/7115 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- src/cppunit/PlugInManager.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/cppunit') diff --git a/src/cppunit/PlugInManager.cpp b/src/cppunit/PlugInManager.cpp index 4f8b371..aec7713 100644 --- a/src/cppunit/PlugInManager.cpp +++ b/src/cppunit/PlugInManager.cpp @@ -1,6 +1,10 @@ #include #include -#include +#include + +#ifdef CPPUNIT_HAVE_STDINT_H + #include +#endif #if !defined(CPPUNIT_NO_TESTPLUGIN) #include @@ -8,6 +12,15 @@ #include #include +#if !defined(CPPUNIT_HAVE_STDINT_H) +# if (CPPUNIT_SIZEOF_VOID_P == 4) + typedef unsigned long int uintptr_t; +# elif (CPPUNIT_SIZEOF_VOID_P == 8) + typedef unsigned long long uintptr_t; +# else +# error "Unsupported compiler" +# endif +#endif CPPUNIT_NS_BEGIN -- cgit v1.2.1