Some TCC adaptations

This commit is contained in:
Luxferre
2022-08-08 06:48:46 +03:00
parent 27d12a1131
commit d2f4b058d2
+2 -1
View File
@@ -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