From 1442f7fb7bfe4a5b693b3a7c4c228037dfb9479f Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Sun, 13 Nov 2016 16:53:18 +0100 Subject: [PATCH] - Fixed Clang on Linux compilation. --- src/r_compiler/llvm_include.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_compiler/llvm_include.h b/src/r_compiler/llvm_include.h index fa23f0c0c..ad58666e3 100644 --- a/src/r_compiler/llvm_include.h +++ b/src/r_compiler/llvm_include.h @@ -46,7 +46,7 @@ #endif -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__clang__) #define __STDC_LIMIT_MACROS // DataTypes.h:57:3: error: "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h" #define __STDC_CONSTANT_MACROS // DataTypes.h:61:3: error: "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h" #pragma clang diagnostic push @@ -80,7 +80,7 @@ #include #endif -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__clang__) #pragma clang diagnostic pop #endif