Ignore:
Timestamp:
11/10/2008 23:52:55 (4 years ago)
Author:
chris
Message:

Ensure that _FILE_OFFSET_BITS is defined before testing its value.

Move definition of DEFINE_ONLY_OPEN64 into intercept.cpp which is
the only place that should use it.

Location:
box/trunk/lib/intercept
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/intercept/intercept.cpp

    r2350 r2351  
    233233        } 
    234234 
     235#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 
     236        #define DEFINE_ONLY_OPEN64 
     237#endif 
     238 
    235239extern "C" int 
    236240#ifdef DEFINE_ONLY_OPEN64 
  • box/trunk/lib/intercept/intercept.h

    r2345 r2351  
    2323        typedef struct dirent *(readdir_t) (DIR *dir); 
    2424        typedef int            (closedir_t)(DIR *dir); 
    25 #if _FILE_OFFSET_BITS == 64 
    26         #define DEFINE_ONLY_OPEN64 
    27 #endif 
    2825#if defined __GNUC__ && __GNUC__ >= 2 
    2926        #define LINUX_WEIRD_LSTAT 
Note: See TracChangeset for help on using the changeset viewer.