r348 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Sep 25 05:19:37 EDT 2007


Author: icculus
Date: 2007-09-25 05:19:37 -0400 (Tue, 25 Sep 2007)
New Revision: 348

Modified:
   trunk/universal.h
Log:
MSVC doesn't support the "inline" keyword directly, outside C++.


Modified: trunk/universal.h
===================================================================
--- trunk/universal.h	2007-09-25 08:46:09 UTC (rev 347)
+++ trunk/universal.h	2007-09-25 09:19:37 UTC (rev 348)
@@ -48,6 +48,11 @@
 #define true 1
 #define false 0
 
+// MSVC doesn't support the "inline" keyword for normal C sources, just C++.
+#if defined(_MSC_VER) && !defined(__cplusplus) && !defined(inline)
+#define inline __inline
+#endif
+
 // Compiler-enforced printf() safety helper.
 // This is appended to function declarations that use printf-style semantics,
 //  and will make sure your passed the right params to "..." for the




More information about the mojosetup-commits mailing list