]> wimlib.net Git - wimlib/blobdiff - src/error.c
Consistently use _WIN32 instead of __WIN32__
[wimlib] / src / error.c
index 22352f533829003f6ae92c166810c67ea644f125..a29d9414efc65775a314cd8b057af52e065e37eb 100644 (file)
@@ -68,7 +68,7 @@ wimlib_vmsg(const tchar *tag, const tchar *format, va_list va, bool perror)
                                 T("unknown error (errno=%d)"),
                                 errno_save);
                }
-       #ifdef WIN32
+       #ifdef _WIN32
                if (errno_save == EBUSY)
                        tstrcpy(buf, T("Resource busy"));
        #endif
@@ -149,7 +149,7 @@ wimlib_set_error_file_by_name(const tchar *path)
 {
        FILE *fp;
 
-#ifdef __WIN32__
+#ifdef _WIN32
        fp = win32_open_logfile(path);
 #else
        fp = fopen(path, "a");