summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/services.h b/include/services.h
index c05b44eac..6d7669e63 100644
--- a/include/services.h
+++ b/include/services.h
@@ -34,9 +34,9 @@
# define u_int32_t uint32_t
# define u_int64_t uint64_t
-# ifndef INADDR_NONE
-# define INADDR_NONE (-1)
-# endif
+# ifndef INADDR_NONE
+# define INADDR_NONE (-1)
+# endif
#endif
@@ -96,6 +96,13 @@ extern CoreExport int inet_pton(int af, const char *src, void *dst);
extern CoreExport const char *inet_ntop(int af, const void *src, char *dst, size_t size);
#endif
+/* Telling compilers about printf()-like functions: */
+#ifdef __GNUC__
+# define FORMAT(type,fmt,start) __attribute__((format(type,fmt,start)))
+#else
+# define FORMAT(type,fmt,start)
+#endif
+
#ifdef HAVE_GETTIMEOFDAY
# include <sys/time.h>
#endif
@@ -141,10 +148,6 @@ extern int strncasecmp(const char *, const char *, size_t);
#define tolower tolower_
#define toupper toupper_
-/* We also have our own encrypt(). */
-#define encrypt encrypt_
-
-
#ifdef __WINS__
#ifndef BKCHECK
#define BKCHECK
@@ -199,7 +202,6 @@ extern int strncasecmp(const char *, const char *, size_t);
/* Miscellaneous definitions. */
#include "hashcomp.h"
-#include "defs.h"
#include "slist.h"
/* Pull in the various bits of STL */