aboutsummaryrefslogtreecommitdiff
path: root/osdep.h
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-11 21:01:02 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-11 21:01:02 +0000
commit0954d0d9e242b4bc122eeaefb8825cc8f8eb3ab5 (patch)
treed4b52e90807872daee359220a7f1518a9eca4cbc /osdep.h
parentdb4a4ea4eee11c41aae835012ddd9559a055f4ce (diff)
Remove blank elements in tcg_target_reg_alloc_order[] (Stuart Brady)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4039 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'osdep.h')
-rw-r--r--osdep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/osdep.h b/osdep.h
index 0666e78b3f..eb3198c78f 100644
--- a/osdep.h
+++ b/osdep.h
@@ -26,6 +26,10 @@
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
+
#ifndef always_inline
#if (__GNUC__ < 3) || defined(__APPLE__)
#define always_inline inline