Skip to content

Commit 4fcad15

Browse files
committed
Merge pull request #126 from JuliaLang/nl/includes2
More header fixes
2 parents f3d5009 + e836b30 commit 4fcad15

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

i387/fenv.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
* $FreeBSD: src/lib/msun/i387/fenv.c,v 1.8 2011/10/21 06:25:31 das Exp $
2727
*/
2828

29-
#include <cdefs-compat.h>
30-
#include <types-compat.h>
31-
#include <math_private.h>
32-
#include <i387/bsd_npx.h>
29+
#include "cdefs-compat.h"
30+
#include "types-compat.h"
31+
#include "math_private.h"
32+
#include "i387/bsd_npx.h"
3333

3434
#define __fenv_static
3535
#include <openlibm_fenv.h>

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

src/types-compat.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,6 @@
33

44
#include <stdint.h>
55
#include <limits.h>
6-
#include <stdint.h>
7-
8-
#ifdef __GLIBC__
9-
/* Not sure what to do about __pure2 on linux */
10-
#define __pure2
11-
#endif
12-
13-
#ifdef _WIN32
14-
/* Not sure what to do about __pure2 on windows */
15-
#define __pure2
16-
#endif
176

187
typedef uint8_t u_int8_t;
198
typedef uint16_t u_int16_t;

0 commit comments

Comments
 (0)