X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fextract.c;h=e06b9ae9287bbfb3d7abe85457195095ce22569e;hb=3042550d9340f8f9e3058702240e2cd376aa33fa;hp=06b285ac73df377ee877eb15dd291639e53ac1d3;hpb=b26d8949b70912ac2e6852abe543890c5cb01c79;p=idzebra-moved-to-github.git diff --git a/index/extract.c b/index/extract.c index 06b285a..e06b9ae 100644 --- a/index/extract.c +++ b/index/extract.c @@ -1,4 +1,4 @@ -/* $Id: extract.c,v 1.211 2006-05-10 13:54:01 adam Exp $ +/* $Id: extract.c,v 1.212 2006-05-10 14:13:45 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -36,12 +36,19 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include -#if _FILE_OFFSET_BITS == 64 -#define PRINTF_OFF_T "%Ld" +#ifdef WIN32 +#define PRINTF_OFF_T "%I64d" +#else +/* !WIN32 */ +#if SIZEOF_OFF_T == SIZEOF_LONG_LONG +#define PRINTF_OFF_T "%lld" #else #define PRINTF_OFF_T "%ld" #endif +#endif + + #define USE_SHELLSORT 0 #if USE_SHELLSORT