aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2009-07-18 22:05:58 +0200
committergrischka <grischka>2009-07-18 22:05:58 +0200
commit035918ef2f33c4d9f1312dab3fde6f08b80a3766 (patch)
tree7d4f90965101faea3a0d3bb34ff9aa5018ec8f00 /tcc.h
parent459875796b1b3049551dabd887bc24addffab136 (diff)
downloadtinycc-035918ef2f33c4d9f1312dab3fde6f08b80a3766.tar.gz
tinycc-035918ef2f33c4d9f1312dab3fde6f08b80a3766.tar.bz2
win64: fix pointer <-> unsigned long typecast issues
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/tcc.h b/tcc.h
index ab95f8d..74761f0 100644
--- a/tcc.h
+++ b/tcc.h
@@ -47,6 +47,9 @@
#define inline __inline
#define inp next_inp
#define dlclose FreeLibrary
+#ifdef _WIN64
+#define uplong unsigned long long
+#endif
#endif
#ifndef _WIN32
@@ -58,6 +61,10 @@
#endif /* !CONFIG_TCCBOOT */
+#ifndef uplong
+#define uplong unsigned long
+#endif
+
#ifndef PAGESIZE
#define PAGESIZE 4096
#endif
@@ -204,7 +211,10 @@ typedef struct Sym {
int *d; /* define token stream */
};
CType type; /* associated type */
- struct Sym *next; /* next related symbol */
+ union {
+ struct Sym *next; /* next related symbol */
+ long jnext; /* next jump label */
+ };
struct Sym *prev; /* prev symbol in stack */
struct Sym *prev_tok; /* previous symbol for this token */
} Sym;