tcc didn't hget hurt
This commit is contained in:
@@ -9,38 +9,20 @@
|
|||||||
* @author Luxferre
|
* @author Luxferre
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Standard includes with size optimizations for TCC */
|
/* Standard or non-standard includes depending on the target */
|
||||||
|
|
||||||
#ifdef __TINYC__
|
#ifdef __CC65__
|
||||||
#include <tcclib.h>
|
#include <conio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#define stderr 2
|
|
||||||
#define SEEK_SET 0
|
|
||||||
#else
|
#else
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <unistd.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 cgetc() (getchar())
|
||||||
#define cputc(c) (putchar(c))
|
#define cputc(c) (putchar(c))
|
||||||
#endif
|
|
||||||
|
|
||||||
/* also, do our best to ensure short-packed value storage in our virtual RAM */
|
|
||||||
#pragma pack(2)
|
#pragma pack(2)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Definitions section */
|
/* Definitions section */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user