fix amd64 asm stuff calling on windows

This commit is contained in:
cathugger
2022-05-31 01:41:03 +03:00
parent fca1c18def
commit 4e20f086e3
12 changed files with 84 additions and 57 deletions

View File

@@ -0,0 +1,10 @@
#ifndef COMPAT_H
#define COMPAT_H
#if defined(_WIN32) && defined(__GNUC__)
#define SYSVABI __attribute__((sysv_abi))
#else
#define SYSVABI
#endif
#endif