summaryrefslogtreecommitdiff
path: root/include/sysconf.h.in
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-12 21:48:40 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-12 21:48:40 +0000
commitee5de492f765f02b09fee772540017fb5ea1007e (patch)
treece2c80ecf8f19b2ccef62ad6c90b97b47b6c9c45 /include/sysconf.h.in
parent61ad72831ef31065b31a49908bab487dcf6cc54f (diff)
BUILD : 1.7.5 (391) BUGS : N/A NOTES : Code tidy, added make strict to the makefile, allowing ansi Wall pedantic to be used for compiling
git-svn-id: svn://svn.anope.org/anope/trunk@391 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@256 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/sysconf.h.in')
-rw-r--r--include/sysconf.h.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/sysconf.h.in b/include/sysconf.h.in
index 5142b6cec..dcb6f2dbe 100644
--- a/include/sysconf.h.in
+++ b/include/sysconf.h.in
@@ -202,6 +202,22 @@
#include <sys/types.h>
#endif
+#ifdef __STRICT_ANSI__
+#include <stdarg.h>
+#include <stdio.h>
+
+/* We KNOW these are not ansi, we are defining them here to suppress the warning
+s messages on a "make strict" compile */
+int snprintf(char *str, size_t size, const char *format, ...);
+int vprintf(const char *format, va_list ap);
+int vfprintf(FILE *stream, const char *format, va_list ap);
+int vsprintf(char *str, const char *format, va_list ap);
+int vsnprintf(char *str, size_t size, const char *format, va_list ap);
+
+typedef unsigned char u_char;
+#endif
+
+
typedef int16_t int16;
typedef u_int16_t uint16;
typedef int32_t int32;