Extend SmallerC sizes to be able to compile curses examples.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#define center(WIND,LN,TEXT) \
|
||||
mvwaddstr((WIND), (LN), (W_COLS - strlen(TEXT))/2, (TEXT))
|
||||
|
||||
void die(sig)
|
||||
void die(int sig)
|
||||
{
|
||||
signal(sig, SIG_IGN);
|
||||
clear();
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#define W_LINES 7
|
||||
#define W_COLS 11
|
||||
|
||||
void die(sig)
|
||||
void die(int sig)
|
||||
{
|
||||
signal(sig, SIG_IGN);
|
||||
werase(curscr);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include <curses.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
|
||||
@@ -4,7 +4,7 @@ include $(TOPSRC)/target.mk
|
||||
CFLAGS = -Os -Wall -DMIPS -DNO_ANNOTATIONS -DNO_PREPROCESSOR \
|
||||
-DNO_PPACK -D_RETROBSD -D__SMALLER_C_SCHAR__ \
|
||||
-D__SMALLER_C__ -D__SMALLER_C_32__ -DSTATIC \
|
||||
-DNO_EXTRA_WARNS -DSYNTAX_STACK_MAX=2530
|
||||
-DNO_EXTRA_WARNS -DSYNTAX_STACK_MAX=3200
|
||||
|
||||
# For cross compile
|
||||
#include $(TOPSRC)/cross.mk
|
||||
|
||||
Reference in New Issue
Block a user