foxygit / doom Log in
commit 75ce08abd69708b2219bbf92d10425ca6d50c711
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Oct 18 23:40:50 2007 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Thu Oct 18 23:40:50 2007 +0000

    #define inline to _inline in MSVC.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 976
---
 textscreen/txt_sdl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c
index 73a69569..aeb8cd63 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -39,6 +39,10 @@
 #define CHAR_W 8
 #define CHAR_H 16

+#if defined(_MSC_VER) && !defined(__cplusplus)
+#define inline __inline
+#endif
+
 // Time between character blinks in ms

 #define BLINK_PERIOD 250