OSDN Git Service

* include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
authordannysmith <dannysmith>
Mon, 31 Mar 2003 21:11:12 +0000 (21:11 +0000)
committerdannysmith <dannysmith>
Mon, 31 Mar 2003 21:11:12 +0000 (21:11 +0000)
winsup/mingw/ChangeLog
winsup/mingw/include/_mingw.h

index 69a48f9..8c2575c 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
+
 2003-03-16  Danny Smith  <dannysmith@users.sourceforge.net>
 
        * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
index 439b5be..ad8dc29 100644 (file)
 #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 */