summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-21 04:41:59 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-21 04:41:59 +0200
commitdf33905ad18dafc26ad62bda12515890299b4bdc (patch)
tree5ddc8423eff96402099f2465a52ecad36136b918 /src/common
parent0ca97e210869dbf2db3df3fcbb3c6266cd198537 (diff)
Relocate typedef.h
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