History

fix cross compiling on openbsd

herman ten brugge committed 5 years ago

Commit 28646b51 parent ecdee4a1 file · +2 −2Browse files

Unified · Split

tccmacho.c+2−2
@@ -839,11 +839,11 @@ ST_FUNC int macho_output_file(TCCState *s1, const char *filename) · 838 unmodified lines
839 return ret;839 return ret;
840}840}
841 841
842static uint32_t swap32(uint32_t x)842static uint32_t macho_swap32(uint32_t x)
843{843{
844 return (x >> 24) | (x << 24) | ((x >> 8) & 0xff00) | ((x & 0xff00) << 8);844 return (x >> 24) | (x << 24) | ((x >> 8) & 0xff00) | ((x & 0xff00) << 8);
845}845}
846#define SWAP(x) (swap ? swap32(x) : (x))846#define SWAP(x) (swap ? macho_swap32(x) : (x))
847 847
848ST_FUNC int macho_load_dll(TCCState *s1, int fd, const char *filename, int lev)848ST_FUNC int macho_load_dll(TCCState *s1, int fd, const char *filename, int lev)
849{849{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t