From aee1c54b3b42d507b4413806b6b0c9fe28ebb18e Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 16 Feb 2016 11:09:34 +0300 Subject: [PATCH] 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. --- cord/tests/de.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cord/tests/de.c b/cord/tests/de.c index da2305e..84aa4de 100644 --- a/cord/tests/de.c +++ b/cord/tests/de.c @@ -27,13 +27,15 @@ */ #include +#include /* for exit() */ + #include "gc.h" #include "cord.h" #ifdef THINK_C #define MACINTOSH -#include #endif +#include #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 +# include /* for sleep() */ # define de_error(s) { fprintf(stderr, s); sleep(2); } #endif #include "de_cmds.h" -- 2.7.4