]> wimlib.net Git - wimlib/blobdiff - include/wimlib_tchar.h
Consistently use _WIN32 instead of __WIN32__
[wimlib] / include / wimlib_tchar.h
index 2e1f44e6cce55b3c64f04e2ea8fdfa5ad86397dc..339b46d6bdbdfe40db4d731f2112de7f8f0a3fc4 100644 (file)
@@ -4,7 +4,7 @@
 /* Functions to act on "tchar" strings, which have a platform-dependent encoding
  * and character size. */
 
-#ifdef __WIN32__
+#ifdef _WIN32
 #include <wchar.h>
 /*
  * For Windows builds, the "tchar" type will be 2 bytes and will be equivalent
@@ -68,7 +68,7 @@ typedef wchar_t tchar;
                        _wcserror_s((buf), (bufsize), (errnum))
 #  define trename      win32_rename_replacement
 #  define tglob                win32_wglob
-#else /* __WIN32__ */
+#else /* _WIN32 */
 /*
  * For non-Windows builds, the "tchar" type will be one byte and will specify a
  * string encoded in UTF-8 with the additional possibility of surrogate
@@ -127,6 +127,6 @@ typedef char tchar;
 #  define trename      rename
 #  define taccess      access
 #  define tglob                glob
-#endif /* !__WIN32__ */
+#endif /* !_WIN32 */
 
 #endif /* _WIMLIB_TCHAR_H */