win64: fix pointer <-> unsigned long typecast issues
This commit is contained in:
12
tcc.h
12
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;
|
||||
|
||||
Reference in New Issue
Block a user