aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c/asn1c.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 /asn1c/asn1c.c
parent464166ca446b5cc46037bbadfa069743a4e18498 (diff)
WIN32 -> _WIN32; see http://predef.sourceforge.net/preos.html#sec25
Diffstat (limited to 'asn1c/asn1c.c')
-rw-r--r--asn1c/asn1c.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/asn1c/asn1c.c b/asn1c/asn1c.c
index 08a3690c..4c565e4a 100644
--- a/asn1c/asn1c.c
+++ b/asn1c/asn1c.c
@@ -42,7 +42,7 @@
#include <asn1c_compat.h> /* Portable basename(3) and dirname(3) */
-#ifdef WIN32
+#ifdef _WIN32
#include <io.h>
#include <direct.h>
#else
@@ -345,7 +345,7 @@ importStandardModules(asn1p_t *asn, const char *skeletons_dir) {
char *target_dir;
int target_dir_len;
int len;
-#ifdef WIN32
+#ifdef _WIN32
intptr_t dir;
struct _finddata_t c_file;
char *pattern;
@@ -369,7 +369,7 @@ importStandardModules(asn1p_t *asn, const char *skeletons_dir) {
snprintf(target_dir, target_dir_len + 1, "%s/standard-modules",
skeletons_dir);
-#ifdef WIN32
+#ifdef _WIN32
len = target_dir_len + sizeof("/*.asn1");
pattern = malloc(len);
assert(pattern);
@@ -386,7 +386,7 @@ importStandardModules(asn1p_t *asn, const char *skeletons_dir) {
return -1;
}
-#ifdef WIN32
+#ifdef _WIN32
do {
filename = c_file.name;
#else
@@ -416,7 +416,7 @@ importStandardModules(asn1p_t *asn, const char *skeletons_dir) {
}
asn1p_delete(new_asn);
-#ifdef WIN32
+#ifdef _WIN32
} while(_findnext(dir, &c_file) == 0);
_findclose(dir);
#else