Changeset 25137

Show
Ignore:
Timestamp:
23.02.2012 12:29:31 (8 years ago)
Author:
kjdon
Message:

change off_t type from long to int32_t so that database files are transferable between 32 and 64 bit systems

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/packages/gdbm/gdbm-1.8.3/gdbmdefs.h

    r19779 r25137  
    3030 
    3131/* On MacOS X, off_t is "long long int" but on Linux (CentOS) it is "long int"  
    32    The following ensure that we use the same for both, and so lets 
     32   Also, longs are different sizes between 32 and 64 bit machines. 
     33   The following ensures that we use the same for all systems, and so lets 
    3334   GDBM read the same database files */ 
    34  
     35#include <stdint.h> 
    3536#undef off_t 
    36 #define off_t long 
     37#define off_t int32_t 
    3738 
    3839/* The type definitions are next.  */