mirror of
git://repo.or.cz/tinycc.git
synced 2026-11-04 21:26:36 +08:00
Fix for MSVC's usage of __declspec(align(#)).
Some checks are pending
build and test / test-x86_64-linux (push) Waiting to run
build and test / test-x86_64-osx (push) Waiting to run
build and test / test-aarch64-osx (push) Waiting to run
build and test / test-x86_64-win32 (push) Waiting to run
build and test / test-i386-win32 (push) Waiting to run
build and test / test-armv7-linux (push) Waiting to run
build and test / test-aarch64-linux (push) Waiting to run
build and test / test-riscv64-linux (push) Waiting to run
Some checks are pending
build and test / test-x86_64-linux (push) Waiting to run
build and test / test-x86_64-osx (push) Waiting to run
build and test / test-aarch64-osx (push) Waiting to run
build and test / test-x86_64-win32 (push) Waiting to run
build and test / test-i386-win32 (push) Waiting to run
build and test / test-armv7-linux (push) Waiting to run
build and test / test-aarch64-linux (push) Waiting to run
build and test / test-riscv64-linux (push) Waiting to run
This commit is contained in:
parent
03184fe33b
commit
571868c4f7
10
tccpp.c
10
tccpp.c
@ -117,7 +117,15 @@ ST_FUNC void expect(const char *msg)
|
|||||||
|
|
||||||
#define USE_TAL
|
#define USE_TAL
|
||||||
|
|
||||||
#define POINTER_SIZE sizeof(void *)
|
#ifdef _MSC_VER
|
||||||
|
# if defined _M_AMD64 || defined _M_ARM64 || defined _M_ARM64EC || defined _M_IA64 || defined _M_X64
|
||||||
|
# define POINTER_SIZE 8
|
||||||
|
# else
|
||||||
|
# define POINTER_SIZE 4
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define POINTER_SIZE sizeof(void *)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef USE_TAL
|
#ifndef USE_TAL
|
||||||
#define tal_free(al, p) tcc_free(p)
|
#define tal_free(al, p) tcc_free(p)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user