Skip to content

Commit 3ee2a6e

Browse files
committed
Merge pull request #68 from talex5/type_includes
[RFC] Don't use sys/types.h
2 parents 9024a93 + 4cb9231 commit 3ee2a6e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

arm/fenv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
#ifndef _FENV_H_
3030
#define _FENV_H_
3131

32-
#include <sys/types.h>
32+
#include <stdint.h>
3333

3434
#ifndef __fenv_static
3535
#define __fenv_static static
3636
#endif
3737

38-
typedef __uint32_t fenv_t;
39-
typedef __uint32_t fexcept_t;
38+
typedef uint32_t fenv_t;
39+
typedef uint32_t fexcept_t;
4040

4141
/* Exception flags */
4242
#define FE_INVALID 0x0001

include/types-compat.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _TYPES_COMPAT_H_
22
#define _TYPES_COMPAT_H_
33

4-
#include <sys/types.h>
4+
#include <stdint.h>
55
#include <limits.h>
66
#include <stdint.h>
77

@@ -13,11 +13,12 @@
1313
#ifdef _WIN32
1414
/* Not sure what to do about __pure2 on windows */
1515
#define __pure2
16+
#endif
17+
1618
typedef uint8_t u_int8_t;
1719
typedef uint16_t u_int16_t;
1820
typedef uint32_t u_int32_t;
1921
typedef uint64_t u_int64_t;
20-
#endif
2122

2223

2324
#endif

src/s_modfl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include <float.h>
4040
#include <openlibm.h>
4141
#include "math_private.h"
42-
#include <sys/types.h>
4342

4443
#include "fpmath.h"
4544

0 commit comments

Comments
 (0)