commit b7a4386d26c640c77ab92822d2a23a2d27fae3b1
parent ac8a8fcf0dad4e73b16a584d4ba3c02b89c1b86e
Author: tgoodwin <tgoodwin>
Date: Tue, 24 Feb 1998 11:21:25 +0000
lower #if count
Diffstat:
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/proto.h b/proto.h
@@ -10,16 +10,12 @@ typedef int SIG_ATOMIC_T;
#endif
#if STDC_HEADERS
-#include <stdlib.h>
-#else
-/* fake stdlib.h */
-extern void exit(int);
-extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
-#endif
-#if STDC_HEADERS
#include <string.h>
-#else
+#include <stdlib.h>
+
+#else /* STDC_HEADERS */
+
/* fake string.h */
extern int strncmp(const char *, const char *, size_t);
extern int strcmp(const char *, const char *);
@@ -32,7 +28,12 @@ extern char *strcat(char *, const char *);
extern char *strncat(char *, const char *, size_t);
extern void *memcpy(void *, const void *, size_t);
extern void *memset(void *, int, size_t);
-#endif
+
+/* fake stdlib.h */
+extern void exit(int);
+extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
+
+#endif /* STDC_HEADERS */
/* fake errno.h for mips (which doesn't declare errno in errno.h!?!?) */
#ifdef host_mips