]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Fix default SIZEOF_OFF_T definition logic
authorYang Tse <yangsita@gmail.com>
Tue, 26 Aug 2008 10:48:52 +0000 (10:48 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 26 Aug 2008 10:48:52 +0000 (10:48 +0000)
lib/setup.h
src/main.c

index 4268b9bf6a3288f7ca6a7a3528a512b263029a95..c1f7135e54438abea007b51c8d20c59c596f7ef9 100644 (file)
 #    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
index 62c34cbdfbab8d85ac419909d680b2ee744b0705..784d1750fd9a38c056ff290094b076c8d4592c9b 100644 (file)
@@ -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