]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
Consistently use _WIN32 instead of __WIN32__
[wimlib] / include / wimlib / compiler.h
index 742f3bfce1a0302fea405e77b11180a20890ffbe..283152bd7aae82ebd1b112a530aa90ad0cfc1080 100644 (file)
@@ -51,7 +51,7 @@
 
 /* Declare that the annotated function should be exported from the shared
  * library (or DLL).  */
-#ifdef __WIN32__
+#ifdef _WIN32
 #  define WIMLIBAPI __declspec(dllexport)
 #else
 #  define WIMLIBAPI __attribute__((visibility("default")))
 /* Hint that the annotated function takes a printf()-like format string and
  * arguments.  This is currently disabled on Windows because MinGW does not
  * support this attribute on functions taking wide-character strings.  */
-#ifdef __WIN32__
+#ifdef _WIN32
 #  define _format_attribute(type, format_str, format_start)
 #else
 #  define _format_attribute(type, format_str, format_start)    \