summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/makefile.mak2
-rw-r--r--src/fe-gtk/typedef.h11
2 files changed, 12 insertions, 1 deletions
diff --git a/src/fe-gtk/makefile.mak b/src/fe-gtk/makefile.mak
index d83d49d8..02bd8479 100644
--- a/src/fe-gtk/makefile.mak
+++ b/src/fe-gtk/makefile.mak
@@ -21,7 +21,7 @@ xchat.rc:
 	echo XC_ICON ICON "../../xchat.ico" > xchat.rc
 
 xchat.res: xchat.rc ../../xchat.ico
-	rc /r xchat.rc
+	rc /nologo /r xchat.rc
 
 xchat-icon.obj: xchat.res
 	cvtres /nologo $(MACHINE_FLAG) /OUT:xchat-icon.obj xchat.res
diff --git a/src/fe-gtk/typedef.h b/src/fe-gtk/typedef.h
new file mode 100644
index 00000000..b20612ea
--- /dev/null
+++ b/src/fe-gtk/typedef.h
@@ -0,0 +1,11 @@
+#ifndef SSIZE_T_DEFINED
+#ifdef ssize_t
+#undef ssize_t
+#endif
+#ifdef _WIN64
+typedef __int64          ssize_t;
+#else
+typedef _W64 int         ssize_t;
+#endif
+#define SSIZE_T_DEFINED
+#endif