Mercurial > dwindows
changeset 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 | 623a42cf06f4 |
children | 9eef6f82ee50 |
files | compat.h |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/compat.h Sat Jan 28 23:19:56 2012 +0000 +++ b/compat.h Mon Jan 30 08:15:16 2012 +0000 @@ -7,6 +7,23 @@ #if defined(__UNIX__) || defined(__MAC__) #include "config.h" +/* Attempt to include 64 bit file functions on various unix flavors */ +#ifndef _FILE_OFFSET_BITS +#define _FILE_OFFSET_BITS 64 +#endif +#ifndef _LARGEFILE_SOURCE +#define _LARGEFILE_SOURCE 1 +#endif +#ifndef _LARGEFILE64_SOURCE +#define _LARGEFILE64_SOURCE 1 +#endif +#ifndef _LARGE_FILES +#define _LARGE_FILES 1 +#endif +#ifndef _DARWIN_USE_64_BIT_INODE +#define _DARWIN_USE_64_BIT_INODE 1 +#endif + #include <sys/stat.h> #include <unistd.h> void msleep(long period);