initial patches for linux compatibility

This commit is contained in:
Berke Viktor
2011-12-11 17:34:02 +01:00
parent 2012320d0e
commit 132ef6cb50
44 changed files with 304 additions and 59 deletions

View File

@@ -27,7 +27,7 @@
#endif
#ifdef WIN32
#include <windows.h>
#define _INC_DIRENT
#define _INC_DIRENT /* disable inclusion of perl's dirent.h, we use an own version for win32 */
#include "../../src/common/dirent.h"
#else
#include <dirent.h>

4
plugins/perl/perl.def Normal file
View File

@@ -0,0 +1,4 @@
EXPORTS
xchat_plugin_init
xchat_plugin_deinit
xchat_plugin_get_info

View File

@@ -55,8 +55,14 @@
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#ifdef WIN32
#include "../../src/common/dirent.h"
#include "../../config.h"
#else
#include <unistd.h>
#include <dirent.h>
#endif
#include "xchat-plugin.h"
#include "Python.h"

View File

@@ -32,6 +32,8 @@ static char RCSID[] = "$Id: tclplugin.c,v 1.64 2010/03/10 04:24:16 mooooooo Exp
#include <windows.h>
#define bzero(mem, sz) memset((mem), 0, (sz))
#define bcopy(src, dest, count) memmove((dest), (src), (count))
#else
#include <unistd.h>
#endif
#include "xchat-plugin.h"

View File

@@ -5,6 +5,10 @@
#include <stdlib.h>
#include <stdio.h>
#ifndef WIN32
#include <unistd.h>
#endif
#include "xchat-plugin.h"
#include "../../src/common/xchat.h"