summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2008-08-01 13:46:43 +0200
committerMatthias Braun <matze@braunis.de>2008-08-01 13:46:43 +0200
commitf3f6b412c1c11884f569919ba52b8979ccbf94e8 (patch)
tree2be27ce63b69be7a756d0b8809388870969735ae /ir/be/beutil.h
parent8b005796a55ce35aef5d6aa5a6c82f0454824661 (diff)
avoid long long in public API
[r20899]
Diffstat (limited to 'ir/be/beutil.h')
-rw-r--r--ir/be/beutil.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/ir/be/beutil.h b/ir/be/beutil.h
index 90f123e..a973713 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -35,6 +35,22 @@
#include "bearch_t.h"
+#ifdef _MSC_VER
+typedef __int64 long64;
+typedef unsigned __int64 ulong64;
+
+#define LL_FMT "i64"
+#define ULL_FMT "ui64"
+
+#else
+typedef long long long64;
+typedef unsigned long long ulong64;
+
+#define LL_FMT "ll"
+#define ULL_FMT "llu"
+
+#endif /* _MSC_VER */
+
/* iterate over a list of ir_nodes linked by link field */
#define foreach_linked_irns(head, iter) for ((iter) = (head); (iter); (iter) = get_irn_link((iter)))