(discard previous FORCEINLINE patch)

* _mingw.h: Move FORCEINLINE declaration ...
* winnt.h : ... From here
* ntdef.h : Remove duplicate FORCEINLINE declaration

-- 
Rafaël Carré
Index: mingw-w64-headers/include/winnt.h
===================================================================
--- mingw-w64-headers/include/winnt.h	(révision 4571)
+++ mingw-w64-headers/include/winnt.h	(copie de travail)
@@ -146,14 +146,6 @@
 #endif
 #endif /* DECLSPEC_NOINLINE */
 
-#ifndef FORCEINLINE
-#if !defined(_MSC_VER) || (_MSC_VER >=1200)
-#define FORCEINLINE __forceinline
-#else
-#define FORCEINLINE __inline
-#endif
-#endif /* FORCEINLINE */
-
 #ifndef DECLSPEC_DEPRECATED
 #define DECLSPEC_DEPRECATED __declspec(deprecated)
 #define DEPRECATE_SUPPORTED
Index: mingw-w64-headers/include/ntdef.h
===================================================================
--- mingw-w64-headers/include/ntdef.h	(révision 4571)
+++ mingw-w64-headers/include/ntdef.h	(copie de travail)
@@ -197,19 +197,6 @@
 #endif
 #endif
 
-/* Inlines */
-#ifndef FORCEINLINE
-#if defined(_MSC_VER) && (_MSC_VER >= 1200)
-#define FORCEINLINE __forceinline
-#elif defined(_MSC_VER)
-#define FORCEINLINE __inline
-#elif defined(__cplusplus) /* __GNUG__ */
-#define FORCEINLINE inline __attribute__((always_inline))
-#else /* __GNUC__ */
-#define FORCEINLINE extern __inline__ __attribute__((always_inline))
-#endif
-#endif /* FORCEINLINE */
-
 #ifndef DECLSPEC_NOINLINE
 #if (_MSC_VER >= 1300)
 #define DECLSPEC_NOINLINE  __declspec(noinline)
Index: mingw-w64-headers/crt/_mingw.h.in
===================================================================
--- mingw-w64-headers/crt/_mingw.h.in	(révision 4571)
+++ mingw-w64-headers/crt/_mingw.h.in	(copie de travail)
@@ -275,6 +275,14 @@
 #endif /* __cplusplus */
 #endif /* __GNUC__ */
 
+#ifndef FORCEINLINE
+#if !defined(_MSC_VER) || (_MSC_VER >=1200)
+#define FORCEINLINE __forceinline
+#else
+#define FORCEINLINE __inline
+#endif
+#endif /* FORCEINLINE */
+
 #ifndef _WIN32
 #error Only Win32 target is supported!
 #endif
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to