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:
parent
03aee5c798
commit
3c7962df41
3 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
# ===========================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue