commit d2f4b058d26f1c624d7108a2a712f468ac6ae49c
parent 27d12a1131b1d23d7e16dd48d24bea4c73632669
Author: Luxferre <lux@ferre>
Date: Mon, 8 Aug 2022 06:48:46 +0300
Some TCC adaptations
Diffstat:
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