aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/awk.h b/awk.h
index f132f3c8..93822bde 100644
--- a/awk.h
+++ b/awk.h
@@ -135,10 +135,10 @@ typedef int off_t;
#ifdef STDC_HEADERS
#include <stdlib.h>
-#else /* not STDC_HEADERS */
-#include "protos.h"
#endif /* not STDC_HEADERS */
+#include "protos.h"
+
#ifdef HAVE_STRING_H
#include <string.h>
#ifdef NEED_MEMORY_H
@@ -167,11 +167,6 @@ typedef int off_t;
#error "you lose: you need a system with vfprintf"
#endif /* HAVE_VPRINTF */
-#ifndef HAVE_SNPRINTF
-/* will use replacement version */
-extern int snprintf(char *restrict buf, size_t len, const char *restrict fmt, ...);
-#endif
-
#ifndef HAVE_SETLOCALE
#define setlocale(locale, val) /* nothing */
#endif /* HAVE_SETLOCALE */
@@ -185,11 +180,6 @@ extern void *memset_ulong(void *dest, int val, unsigned long l);
#define memset memset_ulong
#endif
-#ifndef HAVE_STRNCASECMP
-extern int strcasecmp(const char *s1, const char *s2);
-extern int strncasecmp(const char *s1, const char *s2, register size_t n);
-#endif
-
/* use this as lintwarn("...")
this is a hack but it gives us the right semantics */
#define lintwarn (*(set_loc(__FILE__, __LINE__),lintfunc))