summaryrefslogtreecommitdiff
path: root/include/begin_code.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@lokigames.com>2001-07-02 00:10:19 +0000
committerSam Lantinga <slouken@lokigames.com>2001-07-02 00:10:19 +0000
commit32bf9a536b9863a82ed67747ec519114992df51a (patch)
treeef3648487b37e0329df2188b29c57b73f3a30570 /include/begin_code.h
parent3b694d20650709c5070f6ca49aa2721488f3a6b1 (diff)
Added support for Visual C++ inline keyword
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4086
Diffstat (limited to 'include/begin_code.h')
-rw-r--r--include/begin_code.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/begin_code.h b/include/begin_code.h
index 307ce73d..10f14149 100644
--- a/include/begin_code.h
+++ b/include/begin_code.h
@@ -69,10 +69,15 @@
#define SDL_INLINE_OKAY
#else
/* Add any special compiler-specific cases here */
-#if !defined(_MSC_VER) && !defined(__MRC__) && !defined(_SGI_SOURCE)
+#if defined(_MSC_VER)
+#define __inline__ __inline
+#define SDL_INLINE_OKAY
+#else
+#if !defined(__MRC__) && !defined(_SGI_SOURCE)
#define __inline__ inline
#define SDL_INLINE_OKAY
#endif /* Not a funky compiler */
+#endif /* Visual C++ */
#endif /* GNU C */
#endif /* SDL_INLINE_OKAY */