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__.
This commit is contained in:
jp9000 2017-09-07 16:28:28 -07:00
parent 97ec7166b7
commit 9f9cd1fec3

View file

@ -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)