CMakeLists,network: Create YUZU_UNIX macro to replace __unix__

__unix__ is not predefined on Apple platforms even though they are Unix.
This commit is contained in:
comex 2020-08-31 10:09:06 -04:00
parent 03aee5c798
commit 3c7962df41
3 changed files with 8 additions and 5 deletions

View file

@ -113,6 +113,9 @@ if (NOT DEFINED ARCHITECTURE)
endif()
message(STATUS "Target architecture: ${ARCHITECTURE}")
if (UNIX)
add_definitions(-DYUZU_UNIX=1)
endif()
# Configure C++ standard
# ===========================