summary refs log tree commit diff stats
path: root/plugins/python/python.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-11 19:46:46 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-11 19:46:46 +0200
commit1ea726a91809340451c7a05ede34e7be00ba7863 (patch)
tree936bb6fce5c26b3876a7324ec82ee0bb232875d7 /plugins/python/python.c
parentd81619cca95831e2fd444d71cd078201f3db0e39 (diff)
parent9d9c24c8d347aa44efbd63e8f8c8dfb5b3cddedb (diff)
Merge branch 'wdk'
Diffstat (limited to 'plugins/python/python.c')
-rw-r--r--plugins/python/python.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index fd682082..74d07224 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -53,10 +53,16 @@
 
 #include <glib.h>
 #include <string.h>
-#include <unistd.h>
 #include <stdlib.h>
 #include <sys/types.h>
+
+#ifdef WIN32
+#include "../../src/dirent/dirent-win32.h"
+#include "../../config.h"
+#else
+#include <unistd.h>
 #include <dirent.h>
+#endif
 
 #include "xchat-plugin.h"
 #include "Python.h"
@@ -68,7 +74,7 @@
 
 #ifdef WIN32
 #undef WITH_THREAD /* Thread support locks up xchat on Win32. */
-#define VERSION "0.8/2.4"	/* Linked to python24.dll */
+#define VERSION "0.8/2.7"	/* Linked to python27.dll */
 #else
 #define VERSION "0.8"
 #endif