diff options
| author | Adam <Adam@drink-coca-cola.info> | 2010-05-15 03:27:09 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-06-18 21:02:12 -0400 |
| commit | 2a22d9c2fdf6978858055f1143af0ec40e417424 (patch) | |
| tree | 29e9665007c4245a7a427dc654261473979e115e /include/services.h | |
| parent | c477360dbf45070ff80ad8949a66429fe1ae8414 (diff) | |
Fixed cmake build, removed version_flags it is no longer need, removed old unneeded defs.h and split up pseudo.h
Diffstat (limited to 'include/services.h')
| -rw-r--r-- | include/services.h | 18 |
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 */ |
