aboutsummaryrefslogtreecommitdiff
path: root/osdep.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-04-26 00:15:54 +0200
committerBlue Swirl <blauwirbel@gmail.com>2012-04-28 09:12:38 +0000
commitdda3c2ee335480c52acfe354d0f4d1198268f7b2 (patch)
treed16e4b818fd6700b99c06ecc6439edd324807098 /osdep.h
parentc9696547d4b2d4da9e27d87a56f246d0c6551b96 (diff)
target-mips: Move definition of uint_fast{8, 16}_t to osdep.h
osdep.h is included via qemu-common.h. Prepares for use of [u]int_fast*_t types in softfloat code. Signed-off-by: Andreas Färber <afaerber@suse.de> Cc: Ben Taylor <bentaylor.solx86@gmail.com> Cc: Aurélien Jarno <aurelien@aurel32.net> Cc: Peter Maydell <peter.maydell@linaro.org> Tested-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'osdep.h')
-rw-r--r--osdep.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/osdep.h b/osdep.h
index 428285c7e0..095407dd7d 100644
--- a/osdep.h
+++ b/osdep.h
@@ -10,6 +10,12 @@
#include <sys/time.h>
+#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10
+/* [u]int_fast*_t not in <sys/int_types.h> */
+typedef unsigned char uint_fast8_t;
+typedef unsigned int uint_fast16_t;
+#endif
+
#ifndef glue
#define xglue(x, y) x ## y
#define glue(x, y) xglue(x, y)