diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-02-16 11:09:34 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-02-16 11:09:34 +0300 |
commit | aee1c54b3b42d507b4413806b6b0c9fe28ebb18e (patch) | |
tree | 65dca01277f3408e333186a147a8d6440a40ec75 /cord | |
parent | 004e6e47f1d96bd1271306f98b9e21d273262a7b (diff) | |
download | bdwgc-aee1c54b3b42d507b4413806b6b0c9fe28ebb18e.tar.gz |
Fix 'implicit declaration of function' compiler warnings in cord/de
* cord/tests/de.c: Include stdlib.h (for "exit" prototype); include
ctype.h unconditionally (for "iscntrl", "isdigit" prototypes); include
unistd.h (for "sleep" prototype) unless WIN32 or MACINTOSH.
Diffstat (limited to 'cord')
-rw-r--r-- | cord/tests/de.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cord/tests/de.c b/cord/tests/de.c index da2305e2..84aa4de8 100644 --- a/cord/tests/de.c +++ b/cord/tests/de.c @@ -27,13 +27,15 @@ */ #include <stdio.h> +#include <stdlib.h> /* for exit() */ + #include "gc.h" #include "cord.h" #ifdef THINK_C #define MACINTOSH -#include <ctype.h> #endif +#include <ctype.h> #if (defined(__BORLANDC__) || defined(__CYGWIN__)) && !defined(WIN32) /* If this is DOS or win16, we'll fail anyway. */ @@ -63,6 +65,7 @@ # define COLS 80 #else # include <curses.h> +# include <unistd.h> /* for sleep() */ # define de_error(s) { fprintf(stderr, s); sleep(2); } #endif #include "de_cmds.h" |