Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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