From: Yang Tse Date: Tue, 26 Aug 2008 10:48:52 +0000 (+0000) Subject: Fix default SIZEOF_OFF_T definition logic X-Git-Tag: curl-7_19_0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fdd24c724eaeddd8a3b299b86b4d4053ced01c8;p=thirdparty%2Fcurl.git Fix default SIZEOF_OFF_T definition logic --- diff --git a/lib/setup.h b/lib/setup.h index 4268b9bf6a..c1f7135e54 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -323,7 +323,8 @@ # if defined(_LP64) || defined(_LARGE_FILES) # define SIZEOF_OFF_T 8 # endif -# else +# endif +# ifndef SIZEOF_OFF_T # define SIZEOF_OFF_T 4 # endif #endif diff --git a/src/main.c b/src/main.c index 62c34cbdfb..784d1750fd 100644 --- a/src/main.c +++ b/src/main.c @@ -263,7 +263,8 @@ typedef enum { # if defined(_LP64) || defined(_LARGE_FILES) # define SIZEOF_OFF_T 8 # endif -# else +# endif +# ifndef SIZEOF_OFF_T # define SIZEOF_OFF_T 4 # endif #endif