nga-c new: same source now compiles under tcc/windows

FossilOrigin-Name: 37163ab1415b4fbffcaa59856eddef51d88a31893247bdbb139c3f53be78fdab
This commit is contained in:
crc 2021-04-19 15:31:42 +00:00
parent 8e52dda97c
commit 2fae760607
2 changed files with 15 additions and 4 deletions

View file

@ -22,7 +22,7 @@
- added a decimal device (alt. to floating point w/higher precision)
- better fix for nested file inclusion handling
- start adding pythonista ui support (iOS)
- now runs under Python 2
- now runs under Python 2 again
- nga-c
@ -50,4 +50,4 @@
- epub now has a cover image
- added back some missing files
- add note on enabling sockets when building on Unix
- fixed typos in the glossary

View file

@ -20,9 +20,7 @@
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#ifdef ENABLE_FLOATS
#include <math.h>
@ -35,6 +33,19 @@
#include <sys/socket.h>
#endif
#ifdef ENABLE_UNIX
#include <sys/wait.h>
#include <unistd.h>
#endif
#ifdef _WIN32
#define NEEDS_STRL
#endif
#ifdef _WIN64
#define NEEDS_STRL
#endif
/* Configuration ----------------------------------------------------- */
#define CELL int32_t
#define CELL_MIN INT_MIN + 1