summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/common-xp.vcxproj1
-rw-r--r--src/common/common-xp.vcxproj.filters3
-rw-r--r--src/common/common.vcxproj1
-rw-r--r--src/common/common.vcxproj.filters3
-rw-r--r--src/common/typedef.h11
5 files changed, 19 insertions, 0 deletions
diff --git a/src/common/common-xp.vcxproj b/src/common/common-xp.vcxproj
index c20359f4..6b3e1f91 100644
--- a/src/common/common-xp.vcxproj
+++ b/src/common/common-xp.vcxproj
@@ -39,6 +39,7 @@
     <ClInclude Include="textevents.h" />

     <ClInclude Include="thread.h" />

     <ClInclude Include="tree.h" />

+    <ClInclude Include="typedef.h" />

     <ClInclude Include="url.h" />

     <ClInclude Include="userlist.h" />

     <ClInclude Include="util.h" />

diff --git a/src/common/common-xp.vcxproj.filters b/src/common/common-xp.vcxproj.filters
index 5be20199..4940a6fd 100644
--- a/src/common/common-xp.vcxproj.filters
+++ b/src/common/common-xp.vcxproj.filters
@@ -113,6 +113,9 @@
     <ClInclude Include="strlutil.h">

       <Filter>Header Files</Filter>

     </ClInclude>

+    <ClInclude Include="typedef.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

   </ItemGroup>

   <ItemGroup>

     <ClCompile Include="cfgfiles.c">

diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj
index 9615d94c..a4c88dc6 100644
--- a/src/common/common.vcxproj
+++ b/src/common/common.vcxproj
@@ -39,6 +39,7 @@
     <ClInclude Include="textevents.h" />

     <ClInclude Include="thread.h" />

     <ClInclude Include="tree.h" />

+    <ClInclude Include="typedef.h" />

     <ClInclude Include="url.h" />

     <ClInclude Include="userlist.h" />

     <ClInclude Include="util.h" />

diff --git a/src/common/common.vcxproj.filters b/src/common/common.vcxproj.filters
index 5be20199..4940a6fd 100644
--- a/src/common/common.vcxproj.filters
+++ b/src/common/common.vcxproj.filters
@@ -113,6 +113,9 @@
     <ClInclude Include="strlutil.h">

       <Filter>Header Files</Filter>

     </ClInclude>

+    <ClInclude Include="typedef.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

   </ItemGroup>

   <ItemGroup>

     <ClCompile Include="cfgfiles.c">

diff --git a/src/common/typedef.h b/src/common/typedef.h
new file mode 100644
index 00000000..b20612ea
--- /dev/null
+++ b/src/common/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