mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
642e9cb91a
The cosmocc.zip toolchain will now include four builds of the libcosmo.a runtime libraries. You can pass the -mdbg flag if you want to debug your cosmopolitan runtime. You can pass the -moptlinux flag if you don't want windows code lurking in your binary. See tool/cosmocc/README.md for more details on how these flags may be used and their important implications.
16 lines
461 B
C
16 lines
461 B
C
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_NT2SYSV_H_
|
|
#define COSMOPOLITAN_LIBC_NEXGEN32E_NT2SYSV_H_
|
|
#include "libc/nexgen32e/trampoline.h"
|
|
|
|
/**
|
|
* Creates function to thunk FUNCTION from MSX64 to System V ABI.
|
|
*
|
|
* This macro should be used when specifying callbacks in the WIN32 API.
|
|
*/
|
|
#ifdef __x86_64__
|
|
#define NT2SYSV(FUNCTION) TRAMPOLINE(FUNCTION, __nt2sysv)
|
|
#else
|
|
#define NT2SYSV(FUNCTION) FUNCTION
|
|
#endif
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_NEXGEN32E_NT2SYSV_H_ */
|