diff --git a/src/gnc-module/gnc-module.c b/src/gnc-module/gnc-module.c index ed56b97730..36efd111bc 100644 --- a/src/gnc-module/gnc-module.c +++ b/src/gnc-module/gnc-module.c @@ -9,6 +9,10 @@ #include #include #include +#ifdef G_OS_WIN32 +# undef DLL_EXPORT /* Will cause warnings in ltdl.h if defined */ +# define LIBLTDL_DLL_IMPORT +#endif #include #include #include diff --git a/src/gnc-module/test/test-dynload.c b/src/gnc-module/test/test-dynload.c index d2d7569a0a..04b102a913 100644 --- a/src/gnc-module/test/test-dynload.c +++ b/src/gnc-module/test/test-dynload.c @@ -5,6 +5,10 @@ *********************************************************************/ #include +#ifdef G_OS_WIN32 +# undef DLL_EXPORT /* Will cause warnings in ltdl.h if defined */ +# define LIBLTDL_DLL_IMPORT +#endif #include #include