Skip to content

Commit e836b30

Browse files
committed
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.
1 parent 0df58e7 commit e836b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bsd_cdefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
* for a given compiler, let the compile fail if it is told to use
9494
* a feature that we cannot live without.
9595
*/
96-
#if __GNUC_PREREQ__(2, 7) || defined(__INTEL_COMPILER)
96+
#if !defined(__pure2) && (__GNUC_PREREQ__(2, 7) || defined(__INTEL_COMPILER))
9797
#define __pure2 __attribute__((__const__))
9898
#endif
9999

0 commit comments

Comments
 (0)