diff --git a/minitar.h b/minitar.h index b89e4d8..3ddf49f 100644 --- a/minitar.h +++ b/minitar.h @@ -12,7 +12,7 @@ #include #include -#ifdef _MSC_VER +#ifdef _WIN32 typedef unsigned int mode_t; typedef unsigned int gid_t; typedef unsigned int uid_t; diff --git a/src/util.c b/src/util.c index fda30a8..08b8c31 100644 --- a/src/util.c +++ b/src/util.c @@ -20,7 +20,7 @@ #define noreturn _Noreturn #endif -#if !defined(_MSC_VER) && !defined(__TINYC__) +#if !defined(_WIN32) && !defined(__TINYC__) #define WEAK __attribute__((weak)) #else #define WEAK