shithub: choc

Download patch

ref: 690a424ae8e8f549e05ba678b725aead3572cda9
parent: ad027ef6dbfeebabe0e6701eec968e9d474e497f
author: Fabian Greffrath <fabian@greffrath.com>
date: Thu Mar 26 14:14:38 EDT 2015

Move MSVC-specific inline definition to doomtype.h

I think it fits better there and in case further inline fuctions are
introduced in files other than i_scale.c, it should not be necessary
to copy this definition around.

--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -21,6 +21,10 @@
 #ifndef __DOOMTYPE__
 #define __DOOMTYPE__
 
+#if defined(_MSC_VER) && !defined(__cplusplus)
+#define inline __inline
+#endif
+
 // #define macros to provide functions missing in Windows.
 // Outside Windows, we use strings.h for str[n]casecmp.
 
--- a/src/i_scale.c
+++ b/src/i_scale.c
@@ -28,10 +28,6 @@
 #include "m_argv.h"
 #include "z_zone.h"
 
-#if defined(_MSC_VER) && !defined(__cplusplus)
-#define inline __inline
-#endif
-
 // Should be I_VideoBuffer
 
 static byte *src_buffer;