From 0e122c13ad42c9b782d556bfb1d6541499cd650e Mon Sep 17 00:00:00 2001 From: comex Date: Mon, 31 Aug 2020 10:09:06 -0400 Subject: CMakeLists,network: Create YUZU_UNIX macro to replace __unix__ __unix__ is not predefined on Apple platforms even though they are Unix. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 273260378..2316f7684 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 # =========================== -- cgit v1.2.3