summary refs log tree commit diff stats
path: root/plugins/xdcc
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-02-28 19:18:32 +0100
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-02-28 19:18:32 +0100
commit6355e6a76e73dfd3b8f49fcec524e7d2bbb5a11c (patch)
tree3f24aeb80bebcc90465b6e723d9fc10aa5e41d61 /plugins/xdcc
parentd3330fbe6f3cdcf3cc43550bb61c3393eb7cd794 (diff)
parentdd58a0aa9e29efc87bcdb287b37018c1c6fd132e (diff)
merge with xchat r1490
Diffstat (limited to 'plugins/xdcc')
-rw-r--r--plugins/xdcc/makefile.mak18
-rw-r--r--plugins/xdcc/xdcc.c2
2 files changed, 19 insertions, 1 deletions
diff --git a/plugins/xdcc/makefile.mak b/plugins/xdcc/makefile.mak
new file mode 100644
index 00000000..0a12347e
--- /dev/null
+++ b/plugins/xdcc/makefile.mak
@@ -0,0 +1,18 @@
+include "..\..\src\makeinc.mak"

+

+all: xdcc.obj xdcc.def

+	link $(LDFLAGS) $(LIBS) /dll /out:xcxdcc.dll /def:xdcc.def xdcc.obj

+

+xdcc.def:

+	echo EXPORTS > xdcc.def

+	echo xchat_plugin_init >> xdcc.def

+	echo xchat_plugin_deinit >> xdcc.def

+

+xdcc.obj: xdcc.c makefile.mak

+	cl $(CFLAGS) $(GLIB) /I.. xdcc.c

+

+clean:

+	del *.obj

+	del *.dll

+	del *.exp

+	del *.lib

diff --git a/plugins/xdcc/xdcc.c b/plugins/xdcc/xdcc.c
index 147a3c33..a8fda540 100644
--- a/plugins/xdcc/xdcc.c
+++ b/plugins/xdcc/xdcc.c
@@ -2,11 +2,11 @@
 
 #include <glib.h>
 #include <string.h>
-#include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
 
 #include "xchat-plugin.h"
+#include "../../src/common/xchat.h"
 
 static xchat_plugin *ph;	/* plugin handle */