--- ltdl.h.O 2001-08-13 10:25:49.000000000 -0700 +++ ltdl.h 2005-04-26 05:20:45.044139776 -0700 @@ -131,6 +131,7 @@ # define LT_SCOPE __declspec(dllexport) # endif # ifdef LIBLTDL_DLL_IMPORT /* define if linking with this dll */ +# undef LT_SCOPE # define LT_SCOPE extern __declspec(dllimport) # endif # endif
This situation is quite ugly because it means the user's *code* has to know whether they are linking against a shared or static libltdl, and it's just not possible to determine this dynamically/automatically at compile time.
Since LT_SCOPE is only used for the three lt_*alloc/free function pointers, I suggest removing these declarations completely and using accessor functions to set/get their values.
-- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support