comparison compat.h @ 1589:9a21fbd6ae50

Don't rely on configure to add the 64bit file #defines on Unix and Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 30 Jan 2012 08:15:16 +0000
parents 34d970f3ff23
children
comparison
equal deleted inserted replaced
1588:623a42cf06f4 1589:9a21fbd6ae50
4 #define _COMPAT_H 4 #define _COMPAT_H
5 5
6 /* This header includes and defines everything needed for a given OS/compiler */ 6 /* This header includes and defines everything needed for a given OS/compiler */
7 #if defined(__UNIX__) || defined(__MAC__) 7 #if defined(__UNIX__) || defined(__MAC__)
8 #include "config.h" 8 #include "config.h"
9
10 /* Attempt to include 64 bit file functions on various unix flavors */
11 #ifndef _FILE_OFFSET_BITS
12 #define _FILE_OFFSET_BITS 64
13 #endif
14 #ifndef _LARGEFILE_SOURCE
15 #define _LARGEFILE_SOURCE 1
16 #endif
17 #ifndef _LARGEFILE64_SOURCE
18 #define _LARGEFILE64_SOURCE 1
19 #endif
20 #ifndef _LARGE_FILES
21 #define _LARGE_FILES 1
22 #endif
23 #ifndef _DARWIN_USE_64_BIT_INODE
24 #define _DARWIN_USE_64_BIT_INODE 1
25 #endif
9 26
10 #include <sys/stat.h> 27 #include <sys/stat.h>
11 #include <unistd.h> 28 #include <unistd.h>
12 void msleep(long period); 29 void msleep(long period);
13 #endif /* Unix */ 30 #endif /* Unix */