Go to the documentation of this file.00001 #ifndef SYSDEP_H_INCLUDED
00002 #define SYSDEP_H_INCLUDED
00003 #undef USE_LARGEFILE
00004 #ifndef NO_LONG_LONG
00005
00006 #ifdef __sun__
00007 #define USE_LARGEFILE
00008 #define OFF_T off64_t
00009 #endif
00010
00011 #ifdef __linux__
00012 #define USE_LARGEFILE
00013 #define OFF_T __off64_t
00014 #endif
00015
00016 #ifdef _AIX43
00017 #define _LARGE_FILES
00018 #define _LARGE_FILE_API
00019 #define USE_LARGEFILE
00020 #endif
00021
00022 #ifdef __hpux
00023 #define _FILE64
00024 #define _LARGEFILE64_SOURCE
00025 #define USE_LARGEFILE
00026 #endif
00027
00028 #ifdef __sgi
00029 #define USE_LARGEFILE
00030 #endif
00031
00032 #ifdef __FreeBSD__
00033 #define OFF_T off_t
00034 #define FSEEK fseeko
00035 #define FTELL ftello
00036 #endif
00037
00038 #ifdef USE_LARGEFILE
00039 #ifndef OFF_T
00040 #define OFF_T off64_t
00041 #endif
00042 #define _LARGEFILE_SOURCE
00043 #define _LARGEFILE64_SOURCE
00044 #include <sys/types.h>
00045 #include <sys/stat.h>
00046 #define FOPEN fopen64
00047 #define FREOPEN freopen64
00048 #define FSEEK fseeko64
00049 #define FSTAT fstat64
00050 #define FTELL ftello64
00051 #define FTRUNCATE ftruncate64
00052 #define STAT stat64
00053 #define STAT_ST stat64
00054 #endif
00055 #endif
00056
00057 #ifndef NON_UNIX_STDIO
00058 #ifndef USE_LARGEFILE
00059 #define _INCLUDE_POSIX_SOURCE
00060 #define _INCLUDE_XOPEN_SOURCE
00061 #include "sys/types.h"
00062 #include "sys/stat.h"
00063 #endif
00064 #endif
00065
00066 #endif