summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2002-05-16 07:22:23 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2002-05-16 07:22:23 +0000
commitcbb0926c97fda93ad70cb09c970cefaface69597 (patch)
tree97d9b1cae95756fc69ed69cf4d1fb15d2592332e
parent28c6aac0fb8e66346369e813b882e22499c85fff (diff)
downloadgdb-cbb0926c97fda93ad70cb09c970cefaface69597.tar.gz
* include/_mingw.h (__MINGW_IMPORT): Put extern at start
to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
-rw-r--r--winsup/mingw/ChangeLog5
-rw-r--r--winsup/mingw/include/_mingw.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 0539c7e2d3b..d7867cbf87c 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,5 +1,10 @@
2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
+ * include/_mingw.h (__MINGW_IMPORT): Put extern at start
+ to avoid warnings. Thanks to: Oscar Fuentes <ofv@wanadoo.es>.
+
+2002-05-16 Danny Smith <dannysmith@users.sourceforge.net>
+
* mingwex/snprintf.c: Split out vsnprintf to....
* mingwex/vsnprintf.c: New file.
* mingwex/snwprintf.c: Split out vsnwprintf to...
diff --git a/winsup/mingw/include/_mingw.h b/winsup/mingw/include/_mingw.h
index 7606879429c..f8b12614220 100644
--- a/winsup/mingw/include/_mingw.h
+++ b/winsup/mingw/include/_mingw.h
@@ -48,9 +48,9 @@
# define __DECLSPEC_SUPPORTED
#else /* __GNUC__ */
# ifdef __declspec
- /* note the extern at the end. This is needed to work around GCC's
+ /* Note the extern. This is needed to work around GCC's
limitations in handling dllimport attribute. */
-# define __MINGW_IMPORT __attribute__((dllimport)) extern
+# define __MINGW_IMPORT extern __attribute__((dllimport))
# define __DECLSPEC_SUPPORTED
# else
# undef __DECLSPEC_SUPPORTED