[PATCH] Allow __MINGW_IMPORT to be overriden
Casper Hornstrup <[email protected]>
| Newsgroups | gmane.comp.gnu.mingw.patches |
|---|---|
| Message-ID | <[email protected]> |
Danny, is this what you had in mind? 2002-06-16 Casper S. Hornstrup <[email protected]> * include/_mingw.h (__MINGW_IMPORT): Wrap in #ifndef __MINGW_IMPORT so it can be overriden by a client. Index: include/_mingw.h =================================================================== RCS file: /cvsroot/mingw/runtime/include/_mingw.h,v retrieving revision 1.7 diff -b -u -r1.7 _mingw.h --- include/_mingw.h 14 Jun 2002 15:12:54 -0000 1.7 +++ include/_mingw.h 16 Jun 2002 13:27:03 -0000 @@ -44,13 +44,17 @@ style declarations. */ #ifndef __GNUC__ +# ifndef __MINGW_IMPORT # define __MINGW_IMPORT __declspec(dllimport) +# endif # define __DECLSPEC_SUPPORTED #else /* __GNUC__ */ # ifdef __declspec +# ifndef __MINGW_IMPORT /* Note the extern. This is needed to work around GCC's limitations in handling dllimport attribute. */ # define __MINGW_IMPORT extern __attribute__((dllimport)) +# endif # define __DECLSPEC_SUPPORTED # else # undef __DECLSPEC_SUPPORTED _______________________________________________________________ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/