win32 fix release build
authorAndy Green <andy@warmcat.com>
Sat, 14 May 2011 11:12:01 +0000 (13:12 +0200)
committerAndy Green <andy@warmcat.com>
Sat, 14 May 2011 11:12:01 +0000 (13:12 +0200)
static inline blows up release builds on VC

Reported-by: Michel Archambault <marchamb@matrox.com>
Signed-off-by: Andy Green <andy@warmcat.com>
lib/private-libwebsockets.h

index 6aef84a..fafc0cc 100644 (file)
@@ -84,7 +84,12 @@ void debug(const char *format, ...)
        va_start(ap, format); vfprintf(stderr, format, ap); va_end(ap);
 }
 #else
-static inline void debug(const char *format, ...)
+#ifdef WIN32
+static
+#else
+static inline
+#endif
+void debug(const char *format, ...)
 {
 }
 #endif