[OpenBIOS] [commit] r863 - trunk/fcode-utils-devel/shared

repository service svn at openbios.org
Sat Sep 25 19:07:12 CEST 2010


Author: stepan
Date: Sat Sep 25 19:07:10 2010
New Revision: 863
URL: http://tracker.coreboot.org/trac/openbios/changeset/863

Log:
Haiku does not have asm/types.h. It does have [u]int*_t but not
in sys/types.h.

Use C99/POSIX stdint.h types for all platforms.

v1 -> v2:
* Don't just use stdint.h in place of sys/types.h in the Sun/Haiku code path.
  Suggested by Stefan.

Signed-off-by: Andreas Färber <andreas.faerber at web.de>
Cc: Stefan Reinauer <stepan at openbios.org>

Modified:
   trunk/fcode-utils-devel/shared/types.h

Modified: trunk/fcode-utils-devel/shared/types.h
==============================================================================
--- trunk/fcode-utils-devel/shared/types.h	Sat Sep 11 18:39:32 2010	(r862)
+++ trunk/fcode-utils-devel/shared/types.h	Sat Sep 25 19:07:10 2010	(r863)
@@ -39,22 +39,8 @@
  *
  **************************************************************************** */
 
-#if defined(__APPLE__)
+#include <stdint.h>
 
-#include <sys/types.h>
-
-typedef int8_t s8;
-typedef u_int8_t u8;
-
-typedef int16_t s16;
-typedef u_int16_t u16;
-
-typedef int32_t s32;
-typedef u_int32_t u32;
-
-#elif defined(__sun__)
-
-#include <sys/types.h>
 
 typedef int8_t s8;
 typedef uint8_t u8;
@@ -68,20 +54,6 @@
 typedef int64_t s64;
 typedef uint64_t u64;
 
-#else
-
-#include <asm/types.h>
-
-typedef __s8    s8;
-typedef __u8    u8;
-
-typedef __s16   s16;
-typedef __u16   u16;
-
-typedef __s32   s32;
-typedef __u32   u32;
-
-#endif
 
 #ifdef FALSE            /*  Hack for AIX.     */
 #undef FALSE



More information about the OpenBIOS mailing list