From 4671b59337eface3bf342f15a7ed206652ba8042 Mon Sep 17 00:00:00 2001 From: Zeex Date: Sun, 6 Apr 2014 14:17:30 +0700 Subject: [PATCH] Add /J to MSVC compile flags http://msdn.microsoft.com/en-us/library/0d294k5z.aspx /J (Default char Type Is unsigned) Changes the default char type from signed char to unsigned char, and the char type is zero-extended when it is widened to an int type. --- source/compiler/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compiler/CMakeLists.txt b/source/compiler/CMakeLists.txt index 28083d0..8c1a85a 100644 --- a/source/compiler/CMakeLists.txt +++ b/source/compiler/CMakeLists.txt @@ -24,7 +24,7 @@ IF(HAVE_ALLOCA_H) ENDIF(HAVE_ALLOCA_H) IF(MSVC) - ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS) + ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS /J) ENDIF(MSVC) IF(UNIX)