From ffe404f391fc86a18920bc2cfa939fe9c3176483 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 25 Aug 2020 01:47:41 +0530 Subject: cube: Check _MSC_VER instead of _WIN32 for pragma directive --- cube/cube.c | 2 ++ cube/object_type_string_helper.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'cube') diff --git a/cube/cube.c b/cube/cube.c index 6df37bf1..639db31c 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -40,7 +40,9 @@ #endif #ifdef _WIN32 +#ifdef _MSC_VER #pragma comment(linker, "/subsystem:windows") +#endif // MSVC #define APP_NAME_STR_LEN 80 #endif // _WIN32 diff --git a/cube/object_type_string_helper.h b/cube/object_type_string_helper.h index 692f7a83..0469b801 100644 --- a/cube/object_type_string_helper.h +++ b/cube/object_type_string_helper.h @@ -21,7 +21,7 @@ ****************************************************************************/ #pragma once -#ifdef _WIN32 +#ifdef _MSC_VER #pragma warning(disable : 4065) #endif -- cgit v1.2.3