aboutsummaryrefslogtreecommitdiff
path: root/cube
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2020-08-25 01:47:41 +0530
committerjeremyk-lunarg <jeremyk@lunarg.com>2020-08-26 16:35:43 -0600
commitffe404f391fc86a18920bc2cfa939fe9c3176483 (patch)
treec644abe665880c4be849be919a829bf1214808d0 /cube
parentd23e1ea399617e4ddbb0bc0ac8abb4f7b47ace1f (diff)
downloadusermoji-ffe404f391fc86a18920bc2cfa939fe9c3176483.tar.xz
cube: Check _MSC_VER instead of _WIN32 for pragma directive
Diffstat (limited to 'cube')
-rw-r--r--cube/cube.c2
-rw-r--r--cube/object_type_string_helper.h2
2 files changed, 3 insertions, 1 deletions
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