Browse Source

Merge pull request #126 from JuliaLang/nl/includes2

More header fixes
Viral B. Shah 9 years ago
parent
commit
4fcad1584a
3 changed files with 5 additions and 16 deletions
  1. 4 4
      i387/fenv.c
  2. 1 1
      src/bsd_cdefs.h
  3. 0 11
      src/types-compat.h

+ 4 - 4
i387/fenv.c

@@ -26,10 +26,10 @@
  * $FreeBSD: src/lib/msun/i387/fenv.c,v 1.8 2011/10/21 06:25:31 das Exp $
  */
 
-#include <cdefs-compat.h>
-#include <types-compat.h>
-#include <math_private.h>
-#include <i387/bsd_npx.h>
+#include "cdefs-compat.h"
+#include "types-compat.h"
+#include "math_private.h"
+#include "i387/bsd_npx.h"
 
 #define	__fenv_static
 #include <openlibm_fenv.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
 

+ 0 - 11
src/types-compat.h

@@ -3,17 +3,6 @@
 
 #include <stdint.h>
 #include <limits.h>
-#include <stdint.h>
-
-#ifdef __GLIBC__
-/* Not sure what to do about __pure2 on linux */
-#define __pure2 
-#endif
-
-#ifdef _WIN32
-/* Not sure what to do about __pure2 on windows */
-#define __pure2 
-#endif
 
 typedef uint8_t               u_int8_t;
 typedef uint16_t              u_int16_t;