Browse Source

libobs/util: Ignore PRINTFATTR if using SWIG preprocessor

SWIG will fail because it doesn't define _MSC_VER and because it doesn't
know what to do with things like __attribute__.
jp9000 8 years ago
parent
commit
9f9cd1fec3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libobs/util/base.h

+ 1 - 1
libobs/util/base.h

@@ -76,7 +76,7 @@ EXPORT void base_set_crash_handler(
 
 EXPORT void blogva(int log_level, const char *format, va_list args);
 
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) && !defined(SWIG)
 #define PRINTFATTR(f, a) __attribute__((__format__(__printf__, f, a)))
 #else
 #define PRINTFATTR(f, a)