From d6bb55476c9aa4771e2b7f24cee05325a1df4117 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Mon, 29 Dec 2008 20:07:38 +0000 Subject: Revived Autotools from the grave, although it'll need some tweaking to work alongside CMake now. (In other words, don't use this commit, I committed this so I don't have to re-add these files again if I screw something up.) git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1876 5417fbe8-f217-4b02-8779-1006273d7864 --- include/sysconf.h.win32 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 include/sysconf.h.win32 (limited to 'include/sysconf.h.win32') diff --git a/include/sysconf.h.win32 b/include/sysconf.h.win32 new file mode 100644 index 000000000..5b33a3608 --- /dev/null +++ b/include/sysconf.h.win32 @@ -0,0 +1,44 @@ + +#define SERVICES_DIR "data" +#define SERVICES_BIN "anope.exe" + +typedef signed __int16 int16; +typedef signed __int16 int16_t; +typedef unsigned __int16 uint16; +typedef unsigned __int16 u_int16_t; +typedef signed __int32 int32; +typedef signed __int32 int32_t; +typedef unsigned __int32 uint32; +typedef unsigned __int32 u_int32_t; +typedef unsigned __int8 u_int8_t; + +#define HAVE_STRINGS_H 0 +#define HAVE_SYS_SELECT_H 0 +#define HAVE_SYS_SYSPROTO_H 0 + +#define HAVE_STRICMP 1 +#define HAVE_STRCASECMP 0 +#define HAVE_STRSIGNAL 0 +#define HAVE_GETTIMEOFDAY 0 +#define HAVE_SETGRENT 0 +#define HAVE_UMASK 0 +#define HAVE_FORK 0 +#define HAVE_GETHOSTBYNAME 1 +#define HAVE_BACKTRACE 0 + +/* Enable Module support */ +#define USE_MODULES +#define MODULE_PATH ".\\modules\\" + +/* Windows/MSVC likes to name things differently */ +#define snprintf _snprintf +#define popen _popen +#define pclose _pclose +#define ftruncate _chsize +#define PATH_MAX MAX_PATH +#define MAXPATHLEN MAX_PATH +#define bzero(buf, size) memset(buf, 0, size) +#define strcasecmp stricmp +#define sleep(x) Sleep(x*1000) + + -- cgit