#include <stdio.h>
#include <stdarg.h>
-#ifdef _WIN32
+#if GDEF_COMPILER_MSVC
#pragma warning(disable : 4244) // 'conversion' conversion from 'type1' to 'type2', possible loss of data
#pragma warning(disable : 4710) // function 'blah' not inlined
#endif
strncpy( dst, buffer, size - 1 );
}
-#ifdef _WIN32
+#if GDEF_COMPILER_MSVC
#pragma warning(disable : 4189) // local variable is initialized but not referenced
#endif
a[1] = '1'; // a.data = "t1st", b.data = "test"
}
-#ifdef _WIN32
+#if GDEF_COMPILER_MSVC
#pragma warning(default : 4189) // local variable is initialized but not referenced
#pragma warning(disable : 4514) // unreferenced inline function has been removed
#endif