initial patches for linux compatibility
This commit is contained in:
@@ -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
4
plugins/perl/perl.def
Normal file
@@ -0,0 +1,4 @@
|
||||
EXPORTS
|
||||
xchat_plugin_init
|
||||
xchat_plugin_deinit
|
||||
xchat_plugin_get_info
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user