Mercurial > projects > dstress
comparison dstress.c @ 742:5906350b5048
fixed misplaced #endif for Windows systems
author | thomask |
---|---|
date | Sat, 12 Nov 2005 21:57:32 +0000 |
parents | d4edcc124e64 |
children | 0e3682dad93a |
comparison
equal
deleted
inserted
replaced
741:3f45fca47bec | 742:5906350b5048 |
---|---|
95 | 95 |
96 #include <windows.h> | 96 #include <windows.h> |
97 #define snprintf _snprintf | 97 #define snprintf _snprintf |
98 #ifndef INVALID_FILE_SIZE | 98 #ifndef INVALID_FILE_SIZE |
99 #define INVALID_FILE_SIZE (-1) | 99 #define INVALID_FILE_SIZE (-1) |
100 #endif | |
100 | 101 |
101 /* not every STDLIB supports C99's "%z" for printf formating */ | 102 /* not every STDLIB supports C99's "%z" for printf formating */ |
102 #ifdef win32 | 103 #ifdef win32 |
103 #define ZU "%u" | 104 #define ZU "%u" |
104 #else | 105 #else |
105 #ifdef win64 | 106 #ifdef win64 |
106 #define ZU "%llu" | 107 #define ZU "%llu" |
107 #else | 108 #else |
108 #error what is the size of a pointer? | 109 #error what is the size of a pointer? |
109 #endif | 110 #endif |
110 #endif | |
111 | |
112 #endif | 111 #endif |
113 | 112 |
114 #else | 113 #else |
115 #error neither POSIX nor MSWindows API detected | 114 #error neither POSIX nor MSWindows API detected |
116 #endif /* USE_WINDOWS else */ | 115 #endif /* USE_WINDOWS else */ |