From df33905ad18dafc26ad62bda12515890299b4bdc Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 21 Oct 2012 04:41:59 +0200 Subject: Relocate typedef.h --- src/common/common-xp.vcxproj | 1 + src/common/common-xp.vcxproj.filters | 3 +++ src/common/common.vcxproj | 1 + src/common/common.vcxproj.filters | 3 +++ src/common/typedef.h | 11 +++++++++++ src/fe-gtk/fe-gtk-xp.vcxproj | 1 - src/fe-gtk/fe-gtk-xp.vcxproj.filters | 3 --- src/fe-gtk/fe-gtk.vcxproj | 1 - src/fe-gtk/fe-gtk.vcxproj.filters | 3 --- src/fe-gtk/sexy-spell-entry.c | 2 +- src/fe-gtk/typedef.h | 11 ----------- 11 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 src/common/typedef.h delete mode 100644 src/fe-gtk/typedef.h (limited to 'src') 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 @@ + 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 @@ Header Files + + Header Files + 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 @@ + 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 @@ Header Files + + Header Files + 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 diff --git a/src/fe-gtk/fe-gtk-xp.vcxproj b/src/fe-gtk/fe-gtk-xp.vcxproj index 3c1bbd2d..e00efd77 100644 --- a/src/fe-gtk/fe-gtk-xp.vcxproj +++ b/src/fe-gtk/fe-gtk-xp.vcxproj @@ -127,7 +127,6 @@ - diff --git a/src/fe-gtk/fe-gtk-xp.vcxproj.filters b/src/fe-gtk/fe-gtk-xp.vcxproj.filters index 370a1ad4..75a213c7 100644 --- a/src/fe-gtk/fe-gtk-xp.vcxproj.filters +++ b/src/fe-gtk/fe-gtk-xp.vcxproj.filters @@ -90,9 +90,6 @@ Header Files - - Header Files - Header Files diff --git a/src/fe-gtk/fe-gtk.vcxproj b/src/fe-gtk/fe-gtk.vcxproj index 29add83f..ae10c04f 100644 --- a/src/fe-gtk/fe-gtk.vcxproj +++ b/src/fe-gtk/fe-gtk.vcxproj @@ -124,7 +124,6 @@ - diff --git a/src/fe-gtk/fe-gtk.vcxproj.filters b/src/fe-gtk/fe-gtk.vcxproj.filters index 370a1ad4..75a213c7 100644 --- a/src/fe-gtk/fe-gtk.vcxproj.filters +++ b/src/fe-gtk/fe-gtk.vcxproj.filters @@ -90,9 +90,6 @@ Header Files - - Header Files - Header Files diff --git a/src/fe-gtk/sexy-spell-entry.c b/src/fe-gtk/sexy-spell-entry.c index 87fa6582..02f6b615 100644 --- a/src/fe-gtk/sexy-spell-entry.c +++ b/src/fe-gtk/sexy-spell-entry.c @@ -34,7 +34,7 @@ #include "sexy-marshal.h" #ifdef WIN32 -#include "typedef.h" +#include "../common/typedef.h" #include #else #include diff --git a/src/fe-gtk/typedef.h b/src/fe-gtk/typedef.h deleted file mode 100644 index b20612ea..00000000 --- a/src/fe-gtk/typedef.h +++ /dev/null @@ -1,11 +0,0 @@ -#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 -- cgit 1.4.1