mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-26 03:50:07 +08:00
fix cross compiling on openbsd
This commit is contained in:
parent
ecdee4a697
commit
28646b559d
@ -839,11 +839,11 @@ ST_FUNC int macho_output_file(TCCState *s1, const char *filename)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static uint32_t swap32(uint32_t x)
|
||||
static uint32_t macho_swap32(uint32_t x)
|
||||
{
|
||||
return (x >> 24) | (x << 24) | ((x >> 8) & 0xff00) | ((x & 0xff00) << 8);
|
||||
}
|
||||
#define SWAP(x) (swap ? swap32(x) : (x))
|
||||
#define SWAP(x) (swap ? macho_swap32(x) : (x))
|
||||
|
||||
ST_FUNC int macho_load_dll(TCCState *s1, int fd, const char *filename, int lev)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user