From 11a9adb19fbfbf265f37edba893a810ea50959a1 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Wed, 6 Oct 2010 14:29:45 +0200 Subject: be consistent about ssize_t --- ext/enchant-wdk/src/config.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'ext') diff --git a/ext/enchant-wdk/src/config.h b/ext/enchant-wdk/src/config.h index 9b569554..d91c69c6 100644 --- a/ext/enchant-wdk/src/config.h +++ b/ext/enchant-wdk/src/config.h @@ -1,13 +1,15 @@ -/* - * Hand tailored config.h for windows. - */ +#include -/* define ssize_t to int if doesn't define.*/ -typedef int ssize_t; -/* #undef ssize_t */ - -#if defined(_MSC_VER) -#pragma warning(disable: 4996) /* The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name. */ +#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 #define ENCHANT_VERSION_STRING "1.6.0" -- cgit 1.4.1