From: Vinson Lee Date: Sat, 24 Feb 2018 23:49:32 +0000 (-0800) Subject: swr/rast: Fix macOS macro. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb742b6ebf2d8c8dcc77f69b44995be2971e116a;p=mesa.git swr/rast: Fix macOS macro. Fixes: a25093de7188 ("swr/rast: Implement JIT shader caching to disk") Signed-off-by: Vinson Lee Reviewed-by: Eric Engestrom Reviewed-By: George Kyriazis --- diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp index ab7c6eb15b0..0cefa43529f 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp @@ -47,7 +47,7 @@ #define JITTER_OUTPUT_DIR SWR_OUTPUT_DIR "\\Jitter" #endif // _WIN32 -#if defined(__APPLE) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__) +#if defined(__APPLE__) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__) #include #include #endif @@ -532,7 +532,7 @@ static inline uint32_t ComputeModuleCRC(const llvm::Module* M) /// constructor JitCache::JitCache() { -#if defined(__APPLE) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__) +#if defined(__APPLE__) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__) if (strncmp(KNOB_JIT_CACHE_DIR.c_str(), "~/", 2) == 0) { char *homedir; if (!(homedir = getenv("HOME"))) {