From e836b30cc783fff7add05a7823d0c877ca64e50d Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Tue, 8 Mar 2016 10:34:20 +0100 Subject: [PATCH] Avoid defining __pure2 if already defined This gets rid of a warning on Mac OS X due to the fact that sys/cdefs.h defines it already. --- src/bsd_cdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bsd_cdefs.h b/src/bsd_cdefs.h index 1ef71ca4..b0ceee3e 100644 --- a/src/bsd_cdefs.h +++ b/src/bsd_cdefs.h @@ -93,7 +93,7 @@ * for a given compiler, let the compile fail if it is told to use * a feature that we cannot live without. */ -#if __GNUC_PREREQ__(2, 7) || defined(__INTEL_COMPILER) +#if !defined(__pure2) && (__GNUC_PREREQ__(2, 7) || defined(__INTEL_COMPILER)) #define __pure2 __attribute__((__const__)) #endif