OSDN Git Service

* include/winnt.h (DECLSPEC_SELECTANY): Define.
authordannysmith <dannysmith>
Thu, 26 Jan 2006 01:55:39 +0000 (01:55 +0000)
committerdannysmith <dannysmith>
Thu, 26 Jan 2006 01:55:39 +0000 (01:55 +0000)
winsup/w32api/ChangeLog
winsup/w32api/include/winnt.h

index f4bc871..2e56b4a 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * include/winnt.h (DECLSPEC_SELECTANY): Define.
+
 2006-01-26  Filip Navara  <xnavara@volny.cz>
 
        * include/winnt.h (DECLSPEC_ALIGN): Define.
index 05343c0..422d9c8 100644 (file)
@@ -51,6 +51,14 @@ extern "C" {
 #endif
 #endif
 
+#ifndef DECLSPEC_SELECTANY
+#if (__GNUC__ >= 4)
+#define DECLSPEC_SELECTANY  __attribute__((selectany))
+#else
+#define DECLSPEC_SELECTANY
+#endif
+#endif
+
 #ifndef VOID
 #define VOID void
 #endif