diff options
| author | Adam <Adam@anope.org> | 2011-03-30 00:55:45 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-03-30 00:55:45 -0400 |
| commit | 8098ed899a3648897c0de925c974e21883a76b8d (patch) | |
| tree | b46ae9bc84943be1a73ebbb56502250f6afe0de6 /include | |
| parent | 77c98f0750da20bc565eb33b9a9d7bbbd1535006 (diff) | |
Fixed windows build more, including ldap
Diffstat (limited to 'include')
| -rw-r--r-- | include/services.h | 48 | ||||
| -rw-r--r-- | include/sysconf.h.cmake | 2 |
2 files changed, 1 insertions, 49 deletions
diff --git a/include/services.h b/include/services.h index f5a787a24..1285b188e 100644 --- a/include/services.h +++ b/include/services.h @@ -46,12 +46,6 @@ #if GETTEXT_FOUND # include <libintl.h> # define _(x) anope_gettext(x) -# ifdef _WIN32 - /* Redefine snprintf and undefine vsnprintf because liblintl defines it to its own function */ -# undef snprintf -# define snprintf _snprintf -# undef vsnprintf -# endif #else # define _(x) x #endif @@ -72,31 +66,7 @@ # define MARK_DEPRECATED __attribute((deprecated)) # define DeleteFile unlink #else -# include <winsock2.h> -# include <ws2tcpip.h> -# include <windows.h> -# include <sys/timeb.h> -# include <direct.h> -# include <io.h> -# ifdef MODULE_COMPILE -# define CoreExport __declspec(dllimport) -# define DllExport __declspec(dllexport) -# else -# define CoreExport __declspec(dllexport) -# define DllExport __declspec(dllimport) -# endif -/* VS2008 hates having this define before its own */ -# define vsnprintf _vsnprintf -/* We have our own inet_pton and inet_ntop (Windows doesn't have its own) */ -# define inet_pton inet_pton_ -# define inet_ntop inet_ntop_ -# define setenv(x, y, z) SetEnvironmentVariable(x, y) -# define unsetenv(x) SetEnvironmentVariable(x, NULL) -# define MARK_DEPRECATED - -extern CoreExport USHORT WindowsGetLanguage(const char *lang); -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); +# include "anope_windows.h" #endif /* Telling compilers about printf()-like functions: */ @@ -114,10 +84,6 @@ extern CoreExport const char *inet_ntop(int af, const void *src, char *dst, size # include <strings.h> #endif -#if HAVE_SYS_SELECT_H -# include <sys/select.h> -#endif - #ifdef _AIX /* Some AIX boxes seem to have bogus includes that don't have these * prototypes. */ @@ -141,18 +107,6 @@ extern int strncasecmp(const char *, const char *, size_t); #define tolower tolower_ #define toupper toupper_ -#ifdef __WINS__ -# ifndef BKCHECK -# define BKCHECK -extern "C" void __pfnBkCheck() {} -# endif -#endif - -#if INTTYPE_WORKAROUND -# undef int16 -# undef int32 -#endif - /** This definition is used as shorthand for the various classes * and functions needed to make a module loadable by the OS. * It defines the class factory and external AnopeInit and AnopeFini functions. diff --git a/include/sysconf.h.cmake b/include/sysconf.h.cmake index 17aa98674..78150a82d 100644 --- a/include/sysconf.h.cmake +++ b/include/sysconf.h.cmake @@ -8,14 +8,12 @@ #cmakedefine HAVE_STDINT_H 1 #cmakedefine HAVE_STDDEF_H 1 #cmakedefine HAVE_BACKTRACE 1 -#cmakedefine HAVE_GETTIMEOFDAY 1 #cmakedefine HAVE_SETGRENT 1 #cmakedefine HAVE_STRCASECMP 1 #cmakedefine HAVE_STRICMP 1 #cmakedefine HAVE_STRINGS_H 1 #cmakedefine HAVE_STRLCAT 1 #cmakedefine HAVE_STRLCPY 1 -#cmakedefine HAVE_SYS_SELECT_H 1 #cmakedefine HAVE_UMASK 1 #cmakedefine HAVE_EVENTFD 1 #cmakedefine GETTEXT_FOUND 1 |
