tcc didn't hget hurt

This commit is contained in:
Luxferre
2022-08-16 15:55:12 +03:00
parent 0bfa35c834
commit 95f56cc4d4
+4 -22
View File
@@ -9,38 +9,20 @@
* @author Luxferre
*/
/* Standard includes with size optimizations for TCC */
/* Standard or non-standard includes depending on the target */
#ifdef __TINYC__
#include <tcclib.h>
#include <stdlib.h>
#include <time.h>
#include <termios.h>
#include <unistd.h>
#define stderr 2
#define SEEK_SET 0
#ifdef __CC65__
#include <conio.h>
#else
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <termios.h>
#include <unistd.h>
#endif
/*
* Non-standard includes
* To save space, we emulate necessary conio functions on non-6502 systems, not vice versa
*/
#ifdef __CC65__
#include <conio.h>
#else
#define cgetc() (getchar())
#define cputc(c) (putchar(c))
#endif
/* also, do our best to ensure short-packed value storage in our virtual RAM */
#pragma pack(2)
#endif
/* Definitions section */