From bbeb5ea38686dfeb9537860770bbdb3bd2f9cd3f Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 17 May 2013 02:03:16 +0100 Subject: Use iostream instead of C-style file operations. --- win/inspircd_win32wrapper.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'win') diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 38754d5df..8234dfefe 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -101,6 +101,9 @@ __inline void sleep(int seconds) { Sleep(seconds * 1000); } #define popen _popen #define pclose _pclose +/* _access */ +#define access _access + /* IPV4 only convert string to address struct */ __inline int inet_aton(const char *cp, struct in_addr *addr) { -- cgit v1.2.3 From 5d0b2b7cfccf057e7abab94c41065f94420899cd Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 22 May 2013 22:18:02 +0100 Subject: Remove hardcoded MAXBUF constant. --- configure | 1 - win/config.h.cmake | 1 - 2 files changed, 2 deletions(-) (limited to 'win') diff --git a/configure b/configure index 5bad741c6..0af698ed0 100755 --- a/configure +++ b/configure @@ -833,7 +833,6 @@ sub writefiles { #define MOD_PATH "$config{MODULE_DIR}" EOF -print FILEHANDLE "#define MAXBUF 514\n"; if ($config{OSNAME} =~ /SunOS/i) { print FILEHANDLE "#define IS_SOLARIS\n"; diff --git a/win/config.h.cmake b/win/config.h.cmake index 05c3ce2f9..dbe705ceb 100644 --- a/win/config.h.cmake +++ b/win/config.h.cmake @@ -9,7 +9,6 @@ #define MOD_PATH "@MODULE_PATH@" #define DATA_PATH "@DATA_PATH@" #define LOG_PATH "@LOG_PATH@" -#define MAXBUF 514 #include "inspircd_win32wrapper.h" #include "threadengines/threadengine_win32.h" -- cgit v1.2.3