CppUnit project page FAQ

SelectDllLoader.h
Go to the documentation of this file.
1 #ifndef CPPUNIT_CONFIG_SELECTDLLLOADER_H
2 #define CPPUNIT_CONFIG_SELECTDLLLOADER_H
3 
45 #if !defined(CPPUNIT_NO_TESTPLUGIN)
46 
47 // Is WIN32 platform ?
48 #if defined(WIN32)
49 #define CPPUNIT_HAVE_WIN32_DLL_LOADER 1
50 #undef CPPUNIT_PLUGIN_EXPORT
51 #define CPPUNIT_PLUGIN_EXPORT extern "C" __declspec(dllexport)
52 
53 // Is BeOS platform ?
54 #elif defined(__BEOS__)
55 #define CPPUNIT_HAVE_BEOS_DLL_LOADER 1
56 
57 // Is Unix platform and have shl_load() (hp-ux)
58 #elif defined(CPPUNIT_HAVE_SHL_LOAD)
59 #define CPPUNIT_HAVE_UNIX_SHL_LOADER 1
60 
61 // Is Unix platform and have include <dlfcn.h>
62 #elif defined(CPPUNIT_HAVE_LIBDL)
63 #define CPPUNIT_HAVE_UNIX_DLL_LOADER 1
64 
65 // Otherwise, disable support for DllLoader
66 #else
67 #define CPPUNIT_NO_TESTPLUGIN 1
68 #endif
69 
70 #if !defined(CPPUNIT_PLUGIN_EXPORT)
71 #define CPPUNIT_PLUGIN_EXPORT extern "C"
72 #endif // !defined(CPPUNIT_PLUGIN_EXPORT)
73 
74 #endif // !defined(CPPUNIT_NO_TESTPLUGIN)
75 
76 #endif // CPPUNIT_CONFIG_SELECTDLLLOADER_H

Send comments to:
CppUnit Developers