1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 07:03:13 +02:00

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
This commit is contained in:
Robin Burchell w00t@inspircd.org
2008-09-30 18:45:10 +00:00
parent ca8996472c
commit e6111d9ff4
5 changed files with 58 additions and 27 deletions
+7 -13
View File
@@ -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"