summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
commite6111d9ff4cb897b5c8bd00fcde339ffce1b66bf (patch)
tree1d4fc7192245c06032400dcbb673772fc1f68f56 /include/services.h
parentca8996472c5e855087bacf947186d919b653ab7d (diff)
Mark some stuff deprecated, move implementation from the interface into the user class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1206 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/include/services.h b/include/services.h
index 2931fa078..db8025193 100644
--- a/include/services.h
+++ b/include/services.h
@@ -55,12 +55,8 @@
#include <stdlib.h>
#include <string.h>
-/* Windows does not have:
- * unistd.h, grp.h,
- * netdb.h, netinet/in.h,
- * sys/socket.h, sys/time.h
- * Windows requires:
- * winsock.h
+/* Windows does not have: unistd.h, grp.h, netdb.h, netinet/in.h, sys/socket.h, sys/time.h
+ * Windows requires: winsock.h
* -- codemastr
*/
@@ -164,13 +160,6 @@
* prototypes. */
extern int strcasecmp(const char *, const char *);
extern int strncasecmp(const char *, const char *, size_t);
-# if 0 /* These break on some AIX boxes (4.3.1 reported). */
-extern int gettimeofday(struct timeval *, struct timezone *);
-extern int socket(int, int, int);
-extern int bind(int, struct sockaddr *, int);
-extern int connect(int, struct sockaddr *, int);
-extern int shutdown(int, int);
-# endif
# undef FD_ZERO
# define FD_ZERO(p) memset((p), 0, sizeof(*(p)))
#endif /* _AIX */
@@ -206,6 +195,11 @@ extern int shutdown(int, int);
# undef int32
#endif
+#ifndef _WIN32
+ #define MARK_DEPRECATED __attribute((deprecated))
+#else
+ #define MARK_DEPRECATED
+#endif
/* Miscellaneous definitions. */
#include "defs.h"