소스 검색

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.
Milan Bouchet-Valat 9 년 전
부모
커밋
e836b30cc7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/bsd_cdefs.h

+ 1 - 1
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