Browse Source

Fix FORCE_INLINE macro

Accidentally put the code within a _MSC_VER #ifdef, causing the macro to
not be found on non-VC compilers
jp9000 11 years ago
parent
commit
29fb9cc9f4
1 changed files with 6 additions and 6 deletions
  1. 6 6
      libobs/util/c99defs.h

+ 6 - 6
libobs/util/c99defs.h

@@ -21,6 +21,12 @@
  * bool, inline, stdint
  */
 
+#ifdef _MSC_VER
+#define FORCE_INLINE __forceinline
+#else
+#define FORCE_INLINE __attribute__(always_inline)
+#endif
+
 #ifdef _MSC_VER
 
 #pragma warning (disable : 4996)
@@ -36,12 +42,6 @@
 #define inline __inline
 #endif
 
-#ifdef _MSC_VER
-#define FORCE_INLINE __forceinline
-#else
-#define FORCE_INLINE __attribute__(always_inline)
-#endif
-
 #define EXPORT __declspec(dllexport)
 #else
 #define EXPORT