aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1compiler/asn1c_compat.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2010-11-20 09:47:13 -0800
committerLev Walkin <vlm@lionet.info>2010-11-20 09:47:13 -0800
commit936595643a2a71f6ef3e50cb7c71734e30b20b2f (patch)
treeee1cf23b7ea1bda9118d877dfa125f6227310846 /libasn1compiler/asn1c_compat.c
parent464166ca446b5cc46037bbadfa069743a4e18498 (diff)
WIN32 -> _WIN32; see http://predef.sourceforge.net/preos.html#sec25
Diffstat (limited to 'libasn1compiler/asn1c_compat.c')
-rw-r--r--libasn1compiler/asn1c_compat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libasn1compiler/asn1c_compat.c b/libasn1compiler/asn1c_compat.c
index 17dd9068..724124c3 100644
--- a/libasn1compiler/asn1c_compat.c
+++ b/libasn1compiler/asn1c_compat.c
@@ -6,7 +6,7 @@
#endif
#ifndef DEFFILEMODE /* Normally in <sys/stat.h> */
-#ifdef WIN32
+#ifdef _WIN32
#define DEFFILEMODE (S_IREAD|S_IWRITE)
#else
#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
@@ -21,7 +21,7 @@
FILE *
asn1c_open_file(const char *name, const char *ext, char **opt_tmpname) {
int created = 1;
-#ifndef WIN32
+#ifndef _WIN32
struct stat sb;
#endif
char *fname;
@@ -44,7 +44,7 @@ asn1c_open_file(const char *name, const char *ext, char **opt_tmpname) {
* Create temporary file.
*/
fd = mkstemp(fname);
-#ifndef WIN32
+#ifndef _WIN32
(void)fchmod(fd, DEFFILEMODE);
#endif
} else {
@@ -62,7 +62,7 @@ asn1c_open_file(const char *name, const char *ext, char **opt_tmpname) {
return NULL;
}
-#ifndef WIN32
+#ifndef _WIN32
/*
* Check sanity.
*/
@@ -76,7 +76,7 @@ asn1c_open_file(const char *name, const char *ext, char **opt_tmpname) {
(void)ftruncate(fd, 0);
#else
_chsize(fd, 0);
-#endif /* WIN32 */
+#endif /* _WIN32 */
/*
* Convert file descriptor into file pointer.