File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if (NOT DISABLE_DOCSTRINGS)
18
18
endif ()
19
19
20
20
if (MSVC )
21
- set (CMAKE_CXX_FLAGS "/Zc:wchar_t- /GR /EHsc /DNOCOLOR / DWIN32 /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS" )
21
+ set (CMAKE_CXX_FLAGS "/Zc:wchar_t- /GR /EHsc /DWIN32 /D_WINDOWS /D_SCL_SECURE_NO_WARNINGS" )
22
22
elseif (CMAKE_HOST_UNIX )
23
23
option (ENABLE_GCC_OPTIMIZATION "Enable specific GCC flags to optimize library size and performance. Only available on Release Mode" 0)
24
24
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fvisibility=hidden" )
Original file line number Diff line number Diff line change 29
29
#include < cstdarg>
30
30
#include < cstdio>
31
31
32
- #ifndef NOCOLOR
33
- #define COLOR_END " \033 [0m "
34
- #define COLOR_WHITE " \033 [1;37m "
35
- #define COLOR_YELLOW " \033 [1;33m "
36
- #define COLOR_GREEN " \033 [0;32m "
32
+ #if _WINDOWS || NOCOLOR
33
+ #define COLOR_END " "
34
+ #define COLOR_WHITE " "
35
+ #define COLOR_YELLOW " "
36
+ #define COLOR_GREEN " "
37
37
#else
38
- #define COLOR_END " "
39
- #define COLOR_WHITE " "
40
- #define COLOR_YELLOW " "
41
- #define COLOR_GREEN " "
38
+ #define COLOR_END " \033 [0m "
39
+ #define COLOR_WHITE " \033 [1;37m "
40
+ #define COLOR_YELLOW " \033 [1;33m "
41
+ #define COLOR_GREEN " \033 [0;32m "
42
42
#endif
43
43
44
44
static bool m_silent = false ;
You can’t perform that action at this time.
0 commit comments