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
42 #if !defined(CPPUNIT_NO_TESTPLUGIN)
43
44 // Is WIN32 platform ?
45 #if defined(WIN32)
46 #define CPPUNIT_HAVE_WIN32_DLL_LOADER 1
47 #undef CPPUNIT_PLUGIN_EXPORT
48 #define CPPUNIT_PLUGIN_EXPORT extern "C" __declspec(dllexport)
49
50 // Is Unix platform and have shl_load() (hp-ux)
51 #elif defined(CPPUNIT_HAVE_SHL_LOAD)
52 #define CPPUNIT_HAVE_UNIX_SHL_LOADER 1
53
54 // Is Unix platform and have include <dlfcn.h>
55 #elif defined(CPPUNIT_HAVE_LIBDL)
56 #define CPPUNIT_HAVE_UNIX_DLL_LOADER 1
57
58 // Otherwise, disable support for DllLoader
59 #else
60 #define CPPUNIT_NO_TESTPLUGIN 1
61 #endif
62
63 #if !defined(CPPUNIT_PLUGIN_EXPORT)
64 #define CPPUNIT_PLUGIN_EXPORT extern "C"
65 #endif // !defined(CPPUNIT_PLUGIN_EXPORT)
66
67 #endif // !defined(CPPUNIT_NO_TESTPLUGIN)
68
69 #endif // CPPUNIT_CONFIG_SELECTDLLLOADER_H

| Send comments to: CppUnit Developers