From c8ca89988fb12ed94a91862cade19d6f44dca992 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 19 Jan 2016 22:02:12 +0000 Subject: Fix -Wexpansion-to-defined warnings in compiler-rt. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@258200 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/profile/GCDAProfiling.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/profile/GCDAProfiling.c') diff --git a/lib/profile/GCDAProfiling.c b/lib/profile/GCDAProfiling.c index 2338761ae..d37d83fad 100644 --- a/lib/profile/GCDAProfiling.c +++ b/lib/profile/GCDAProfiling.c @@ -35,7 +35,11 @@ #include #endif -#define I386_FREEBSD (defined(__FreeBSD__) && defined(__i386__)) +#if defined(__FreeBSD__) && defined(__i386__) +#define I386_FREEBSD 1 +#else +#define I386_FREEBSD 0 +#endif #if !defined(_MSC_VER) && !I386_FREEBSD #include -- cgit v1.2.3