diff --git a/src/lzma/main.cpp b/src/lzma/main.cpp index daf75c9cde..91d828df01 100644 --- a/src/lzma/main.cpp +++ b/src/lzma/main.cpp @@ -4,7 +4,7 @@ #include #include #include -#ifdef WIN32 +#ifdef _WIN32 #include #else #include @@ -65,7 +65,7 @@ int main(int argc, const char** argv) struct stat s; int r = fstat(fd, &s); if (r != -1) { -#ifdef WIN32 +#ifdef _WIN32 HANDLE fm; HANDLE h = (HANDLE)_get_osfhandle(fd); @@ -178,7 +178,7 @@ int main(int argc, const char** argv) fprintf(stderr, "unable to determine uncompressed size\n"); } -#ifdef WIN32 +#ifdef _WIN32 UnmapViewOfFile(data); #else munmap(data, size); diff --git a/src/tools/binary-to-object/main.cpp b/src/tools/binary-to-object/main.cpp index 8889dbaf24..1636d46dfd 100644 --- a/src/tools/binary-to-object/main.cpp +++ b/src/tools/binary-to-object/main.cpp @@ -14,7 +14,7 @@ #include #include -#ifdef WIN32 +#ifdef _WIN32 #include #include #else @@ -120,7 +120,7 @@ int main(int argc, const char** argv) struct stat s; int r = fstat(fd, &s); if (r != -1) { -#ifdef WIN32 +#ifdef _WIN32 HANDLE fm; HANDLE h = (HANDLE)_get_osfhandle(fd); @@ -157,7 +157,7 @@ int main(int argc, const char** argv) fprintf(stderr, "unable to open %s\n", argv[2]); } -#ifdef WIN32 +#ifdef _WIN32 UnmapViewOfFile(data); #else munmap(data, size);