]> git.saurik.com Git - wxWidgets.git/commitdiff
define WXDLLIMPEXP_FWD_XXX as nothing for mingw32 too to avoid warnings about __decls...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Oct 2007 12:14:35 +0000 (12:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 1 Oct 2007 12:14:35 +0000 (12:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dlimpexp.h

index f6effd34446982c854ba7ec6557f4f97ea0a690f..b429d2d938647ff75ea1949e357669898848fff4 100644 (file)
     #define WXDLLIMPEXP_STC
 #endif
 
-/* GCC warns about using __attribute__ on forward declarations, so we need
-   another set of macros for them: */
-#if defined(HAVE_VISIBILITY)
+/*
+   GCC warns about using __attribute__ (and also __declspec in mingw32 case) on
+   forward declarations while MSVC complains about forward declarations without
+   __declspec for the classes later declared with it, so we need a separate set
+   of macros for forward declarations to hide this difference:
+ */
+#if defined(HAVE_VISIBILITY) || (defined(__WINDOWS__) && defined(__GNUC__))
     #define WXDLLIMPEXP_FWD_BASE
     #define WXDLLIMPEXP_FWD_NET
     #define WXDLLIMPEXP_FWD_CORE