From: Pietro Cerutti Date: Mon, 23 Jan 2017 17:11:47 +0000 (+0000) Subject: Assume ANSI C headers are there X-Git-Tag: neomutt-20170128~5^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03ee644fcd964bede68a0114310ebca0f81260cf;p=neomutt Assume ANSI C headers are there Issue: #325 --- diff --git a/doc/makedoc.c b/doc/makedoc.c index 8ad4519d2..cc60f298c 100644 --- a/doc/makedoc.c +++ b/doc/makedoc.c @@ -49,11 +49,6 @@ #include "makedoc-defs.h" #ifndef HAVE_STRERROR -#ifndef STDC_HEADERS -extern int sys_nerr; -extern char *sys_errlist[]; -#endif - #define strerror(x) ((x) > 0 && (x) < sys_nerr) ? sys_errlist[(x)] : 0 #endif /* !HAVE_STRERROR */ diff --git a/mutt_curses.h b/mutt_curses.h index 74dc753ae..4a56db92e 100644 --- a/mutt_curses.h +++ b/mutt_curses.h @@ -257,28 +257,4 @@ void ci_start_color (void); #define MAYBE_REDRAW(x) if (option (OPTNEEDREDRAW)) { unset_option (OPTNEEDREDRAW); x = REDRAW_FULL; } -/* ---------------------------------------------------------------------------- - * These are here to avoid compiler warnings with -Wall under SunOS 4.1.x - */ - -#if !defined(STDC_HEADERS) && !defined(NCURSES_VERSION) && !defined(USE_SLANG_CURSES) -extern int endwin(); -extern int printw(); -extern int beep(); -extern int isendwin(); -extern int w32addch(); -extern int keypad(); -extern int wclrtobot(); -extern int mvprintw(); -extern int getcurx(); -extern int getcury(); -extern int noecho(); -extern int wdelch(); -extern int wrefresh(); -extern int wmove(); -extern int wclear(); -extern int waddstr(); -extern int wclrtoeol(); -#endif - #endif /* _MUTT_CURSES_H_ */ diff --git a/protos.h b/protos.h index 4ac3f9759..fe85d6c1a 100644 --- a/protos.h +++ b/protos.h @@ -489,11 +489,6 @@ extern int vsnprintf (char *, size_t, const char *, va_list); #endif #ifndef HAVE_STRERROR -#ifndef STDC_HEADERS -extern int sys_nerr; -extern char *sys_errlist[]; -#endif - #define strerror(x) ((x) > 0 && (x) < sys_nerr) ? sys_errlist[(x)] : 0 #endif /* !HAVE_STRERROR */ @@ -505,55 +500,6 @@ extern char *sys_errlist[]; int setegid (gid_t); #endif /* _AIX */ -#ifndef STDC_HEADERS -extern FILE *fdopen (); -extern int system (); -extern int puts (); -extern int fputs (); -extern int fputc (); -extern int fseek (); -extern char *strchr (); -extern int getopt (); -extern int fputs (); -extern int fputc (); -extern int fclose (); -extern int fprintf(); -extern int printf (); -extern int fgetc (); -extern int tolower (); -extern int toupper (); -extern int sscanf (); -extern size_t fread (); -extern size_t fwrite (); -extern int system (); -extern int rename (); -extern time_t time (); -extern struct tm *localtime (); -extern char *asctime (); -extern char *strpbrk (); -extern int fflush (); -extern long lrand48 (); -extern void srand48 (); -extern time_t mktime (); -extern int vsprintf (); -extern int ungetc (); -extern int ftruncate (); -extern void *memset (); -extern int pclose (); -extern int socket (); -extern int connect (); -extern size_t strftime (); -extern int lstat (); -extern void rewind (); -extern int readlink (); - -/* IRIX barfs on empty var decls because the system include file uses elipsis - in the declaration. So declare all the args to avoid compiler errors. This - should be harmless on other systems. */ -int ioctl (int, int, ...); - -#endif - /* unsorted */ void ci_bounce_message (HEADER *, int *); int ci_send_message (int, HEADER *, char *, CONTEXT *, HEADER *);