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

This commit is contained in:
Marek Knápek 2025-08-15 04:41:24 +02:00
parent 03184fe33b
commit 571868c4f7

10
tccpp.c
View File

@ -117,7 +117,15 @@ ST_FUNC void expect(const char *msg)
#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
#define tal_free(al, p) tcc_free(p)