Skip to content

Commit

Permalink
Merge pull request #126 from JuliaLang/nl/includes2
Browse files Browse the repository at this point in the history
More header fixes
  • Loading branch information
ViralBShah committed Mar 8, 2016
2 parents f3d5009 + e836b30 commit 4fcad15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
8 changes: 4 additions & 4 deletions i387/fenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
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
11 changes: 0 additions & 11 deletions src/types-compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fcad15

Please sign in to comment.