Fix TinyC compilation

This commit is contained in:
UnknownShadow200 2025-08-01 07:13:59 +10:00
parent 8b11e8b5c8
commit 7c326bb2a2
2 changed files with 6 additions and 2 deletions

View File

@ -138,8 +138,7 @@ Setting up TCC:
Compiling with TCC: Compiling with TCC:
1. Navigate to the directory with ClassiCube's source code 1. Navigate to the directory with ClassiCube's source code
2. In `ExtMath.c`, change `fabsf` to `fabs` and `sqrtf` to `sqrt` 2. Run `tcc.exe -o ClassiCube.exe src/*.c third_party/bearssl/*.c -lwinmm -lgdi32 -luser32 -lcomdlg32 -lshell32`<br>
3. Run `tcc.exe -o ClassiCube.exe src/*.c third_party/bearssl/*.c -lwinmm -lgdi32 -luser32 -lcomdlg32 -lshell32`<br>
(Note: You may need to specify the full path to `tcc.exe` instead of just `tcc.exe`) (Note: You may need to specify the full path to `tcc.exe` instead of just `tcc.exe`)
## Compiling - Linux ## Compiling - Linux

View File

@ -47,6 +47,11 @@
#define BR_USE_URANDOM 0 #define BR_USE_URANDOM 0
#define BR_USE_GETENTROPY 0 #define BR_USE_GETENTROPY 0
/* intrin.h doesn't exist in older TinyC */
#if defined __TINYC__
#define BR_INT128 0
#endif
/* /*
* When BR_64 is enabled, 64-bit integer types are assumed to be * When BR_64 is enabled, 64-bit integer types are assumed to be
* efficient (i.e. the architecture has 64-bit registers and can * efficient (i.e. the architecture has 64-bit registers and can