From: Yang Tse Date: Fri, 3 Dec 2010 03:41:16 +0000 (+0100) Subject: build: provide SIZEOF_SIZE_T definition for non-configure builds X-Git-Tag: upstream/1.10.0~246 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d061e6b2302e50121fa2fe815a05b12ae8b832c;p=platform%2Fupstream%2Fc-ares.git build: provide SIZEOF_SIZE_T definition for non-configure builds --- diff --git a/config-dos.h b/config-dos.h index d17b6c8..653f8f8 100644 --- a/config-dos.h +++ b/config-dos.h @@ -32,6 +32,7 @@ #define RETSIGTYPE void #define SIZEOF_INT 4 #define SIZEOF_SHORT 2 +#define SIZEOF_SIZE_T 4 #define TIME_WITH_SYS_TIME 1 /* Qualifiers for send(), recv(), recvfrom() and getnameinfo(). */ diff --git a/config-win32.h b/config-win32.h index af9a6a8..898ba90 100644 --- a/config-win32.h +++ b/config-win32.h @@ -227,6 +227,13 @@ /* The size of `short', as computed by sizeof. */ #define SIZEOF_SHORT 2 +/* The size of `size_t', as computed by sizeof. */ +#if defined(_WIN64) +# define SIZEOF_SIZE_T 8 +#else +# define SIZEOF_SIZE_T 4 +#endif + /* ---------------------------------------------------------------- */ /* STRUCT RELATED */ /* ---------------------------------------------------------------- */