diff options
| author | Bernhard Sessler <bernhard.sessler@corscience.de> | 2013-12-12 10:17:31 +0100 |
|---|---|---|
| committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-17 14:00:49 +0000 |
| commit | f8cd3430163bde5e8ade2a2245437710b2ec048d (patch) | |
| tree | 0aff3c420ca6299fdefab8abdf215607ec662913 /src/cppunit/PlugInManager.cpp | |
| parent | 8a91ac7749d7d2bb4e9b5790dc7474d82f88bee2 (diff) | |
| download | cppunit-f8cd3430163bde5e8ade2a2245437710b2ec048d.tar.gz | |
src: Fix build with Borland C++ compiler
Change-Id: I0a182186c396f2e45bec76c83506f765f2462b3c
Signed-off-by: Bernhard Sessler <bernhard.sessler@corscience.de>
Reviewed-on: https://gerrit.libreoffice.org/7115
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'src/cppunit/PlugInManager.cpp')
| -rw-r--r-- | src/cppunit/PlugInManager.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
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 <cppunit/config/SourcePrefix.h> #include <cppunit/XmlOutputterHook.h> -#include <stdint.h> +#include <cppunit/config-auto.h> + +#ifdef CPPUNIT_HAVE_STDINT_H + #include <stdint.h> +#endif #if !defined(CPPUNIT_NO_TESTPLUGIN) #include <cppunit/extensions/TestFactoryRegistry.h> @@ -8,6 +12,15 @@ #include <cppunit/plugin/TestPlugIn.h> #include <cppunit/plugin/DynamicLibraryManager.h> +#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 |
