Browse Source

Merge pull request #68 from talex5/type_includes

[RFC] Don't use sys/types.h
Viral B. Shah 10 years ago
parent
commit
3ee2a6e6a9
3 changed files with 6 additions and 6 deletions
  1. 3 3
      arm/fenv.h
  2. 3 2
      include/types-compat.h
  3. 0 1
      src/s_modfl.c

+ 3 - 3
arm/fenv.h

@@ -29,14 +29,14 @@
 #ifndef	_FENV_H_
 #define	_FENV_H_
 
-#include <sys/types.h>
+#include <stdint.h>
 
 #ifndef	__fenv_static
 #define	__fenv_static	static
 #endif
 
-typedef	__uint32_t	fenv_t;
-typedef	__uint32_t	fexcept_t;
+typedef	uint32_t	fenv_t;
+typedef	uint32_t	fexcept_t;
 
 /* Exception flags */
 #define	FE_INVALID	0x0001

+ 3 - 2
include/types-compat.h

@@ -1,7 +1,7 @@
 #ifndef _TYPES_COMPAT_H_
 #define	_TYPES_COMPAT_H_
 
-#include <sys/types.h>
+#include <stdint.h>
 #include <limits.h>
 #include <stdint.h>
 
@@ -13,11 +13,12 @@
 #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;
 typedef uint32_t              u_int32_t;
 typedef uint64_t              u_int64_t;
-#endif
 
 
 #endif

+ 0 - 1
src/s_modfl.c

@@ -39,7 +39,6 @@
 #include <float.h>
 #include <openlibm.h>
 #include "math_private.h"
-#include <sys/types.h>
 
 #include "fpmath.h"