Skip to content

Commit

Permalink
Merge pull request #476 from Dronecode/no-color-for-ios
Browse files Browse the repository at this point in the history
core: don't use colors for iOS
  • Loading branch information
julianoes authored Jul 31, 2018
2 parents a2db417 + dd3f724 commit 9d6ae79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmake/compiler_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ if(APPLE)
add_definitions("-DAPPLE")
endif()

if(IOS)
add_definitions("-DIOS")
endif()

if(UNIX AND NOT APPLE)
add_definitions("-DLINUX")
endif()
Expand Down
2 changes: 1 addition & 1 deletion core/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void set_color(Color color)
SetConsoleTextAttribute(handle, WIN_COLOR_RESET);
break;
}
#elif defined(ANDROID)
#elif defined(ANDROID) || defined(IOS)
UNUSED(color);
#else
switch (color) {
Expand Down

0 comments on commit 9d6ae79

Please sign in to comment.