diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2003-03-31 21:11:13 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2003-03-31 21:11:13 +0000 |
commit | ce5435df0b59c9b4eda96bad4fd6fc90c5a12c4b (patch) | |
tree | 42e0f4fcdc59a30b48542a42a6b604e314051f80 /winsup/mingw/include/_mingw.h | |
parent | ebb73170e8508811818cb76e129b994730668e83 (diff) | |
download | cygnal-ce5435df0b59c9b4eda96bad4fd6fc90c5a12c4b.tar.gz cygnal-ce5435df0b59c9b4eda96bad4fd6fc90c5a12c4b.tar.bz2 cygnal-ce5435df0b59c9b4eda96bad4fd6fc90c5a12c4b.zip |
* include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
Diffstat (limited to 'winsup/mingw/include/_mingw.h')
-rw-r--r-- | winsup/mingw/include/_mingw.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/winsup/mingw/include/_mingw.h b/winsup/mingw/include/_mingw.h index 439b5beaf..ad8dc29df 100644 --- a/winsup/mingw/include/_mingw.h +++ b/winsup/mingw/include/_mingw.h @@ -55,13 +55,16 @@ #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 # ifndef _CRTIMP -# define _CRTIMP __attribute__((dllimport)) +# ifdef __USE_CRTIMP +# define _CRTIMP __attribute__((dllimport)) +# else +# define _CRTIMP +# endif # endif # define __DECLSPEC_SUPPORTED # else /* __declspec */ |