Add patches to tcc-0.9.26 for pnut compatiblity

This commit is contained in:
Laurent Huberdeau 2025-03-30 22:46:49 -04:00
parent 2057d551e0
commit 8e3e9c16e9
8 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#ifdef PNUT_CC
char buf1[1024];
#else
char buf1[sizeof file->filename];
#endif

View file

@ -0,0 +1 @@
char buf1[sizeof file->filename];

View file

@ -0,0 +1,3 @@
#ifdef PNUT_CC
s1->error_set_jmp_enabled = 0;
#endif

View file

@ -0,0 +1 @@
s1->error_set_jmp_enabled = 1;

View file

@ -0,0 +1,5 @@
#ifdef PNUT_CC
a = 0; b = 9; c = 26;
#else
sscanf(TCC_VERSION, "%d.%d.%d", &a, &b, &c);
#endif

View file

@ -0,0 +1 @@
sscanf(TCC_VERSION, "%d.%d.%d", &a, &b, &c);

View file

@ -0,0 +1 @@
#if defined _WIN32 == defined TCC_TARGET_PE && !defined PNUT_CC

View file

@ -0,0 +1 @@
#if defined _WIN32 == defined TCC_TARGET_PE