Skip to content

Commit

Permalink
Avoid defining __pure2 if already defined
Browse files Browse the repository at this point in the history
This gets rid of a warning on Mac OS X due to the fact that
sys/cdefs.h defines it already.
  • Loading branch information
nalimilan committed Mar 8, 2016
1 parent 0df58e7 commit e836b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bsd_cdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e836b30

Please sign in to comment.