From 88d6fbffb7e597d57dc7e3b9c9ecd60976620d17 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 6 Feb 2023 23:17:28 +0100 Subject: [PATCH] fix: Check for _WIN32 instead of _MSC_VER --- minitar.h | 2 +- src/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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