equi

A self-descriptive stack-based PC platform
git clone git://git.luxferre.top/equi.git
Log | Files | Refs | README | LICENSE

commit d2f4b058d26f1c624d7108a2a712f468ac6ae49c
parent 27d12a1131b1d23d7e16dd48d24bea4c73632669
Author: Luxferre <lux@ferre>
Date:   Mon,  8 Aug 2022 06:48:46 +0300

Some TCC adaptations

Diffstat:
Mequi.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/equi.c b/equi.c @@ -13,6 +13,7 @@ #ifdef __TINYC__ #include <tcclib.h> +#define stderr 2 #else #include <stdlib.h> #include <stdio.h> @@ -302,7 +303,7 @@ void equi_main_loop() { int main(int argc, char* argv[]) { /* _attempt_ to disable buffering for char input/output */ -#ifndef __CC65__ +#if !defined __CC65__ && !defined __TINYC__ setvbuf(stdin, NULL, _IONBF, 0); setvbuf(stdout, NULL, _IONBF, 0); #endif