File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
#include < string.h>
5
5
#include < sys/types.h>
6
6
#include < sys/stat.h>
7
- #ifdef WIN32
7
+ #ifdef _WIN32
8
8
#include < windows.h>
9
9
#else
10
10
#include < sys/mman.h>
@@ -65,7 +65,7 @@ int main(int argc, const char** argv)
65
65
struct stat s;
66
66
int r = fstat (fd, &s);
67
67
if (r != -1 ) {
68
- #ifdef WIN32
68
+ #ifdef _WIN32
69
69
HANDLE fm;
70
70
HANDLE h = (HANDLE)_get_osfhandle (fd);
71
71
@@ -178,7 +178,7 @@ int main(int argc, const char** argv)
178
178
fprintf (stderr, " unable to determine uncompressed size\n " );
179
179
}
180
180
181
- #ifdef WIN32
181
+ #ifdef _WIN32
182
182
UnmapViewOfFile (data);
183
183
#else
184
184
munmap (data, size);
Original file line number Diff line number Diff line change 14
14
#include < string.h>
15
15
16
16
#include < sys/stat.h>
17
- #ifdef WIN32
17
+ #ifdef _WIN32
18
18
#include < windows.h>
19
19
#include < io.h>
20
20
#else
@@ -120,7 +120,7 @@ int main(int argc, const char** argv)
120
120
struct stat s;
121
121
int r = fstat (fd, &s);
122
122
if (r != -1 ) {
123
- #ifdef WIN32
123
+ #ifdef _WIN32
124
124
HANDLE fm;
125
125
HANDLE h = (HANDLE)_get_osfhandle (fd);
126
126
@@ -157,7 +157,7 @@ int main(int argc, const char** argv)
157
157
fprintf (stderr, " unable to open %s\n " , argv[2 ]);
158
158
}
159
159
160
- #ifdef WIN32
160
+ #ifdef _WIN32
161
161
UnmapViewOfFile (data);
162
162
#else
163
163
munmap (data, size);
You can’t perform that action at this time.
0 commit comments