- Fixed Clang on Linux compilation.

This commit is contained in:
Edoardo Prezioso 2016-11-13 16:53:18 +01:00
parent acb2e821f0
commit 1442f7fb7b

View file

@ -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 <llvm/Support/FormattedStream.h>
#endif
#ifdef __APPLE__
#if defined(__APPLE__) || defined(__clang__)
#pragma clang diagnostic pop
#endif