NAMD
largefiles.h
Go to the documentation of this file.
1 /***************************************************************************
2  *cr
3  *cr (C) Copyright 1995-2006 The Board of Trustees of the
4  *cr University of Illinois
5  *cr All Rights Reserved
6  *cr
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * RCS INFORMATION:
11  *
12  * $RCSfile: largefiles.h,v $
13  * $Author: jim $ $Locker: $ $State: Exp $
14  * $Revision: 1.3 $ $Date: 2012/01/28 22:05:55 $
15  *
16  ***************************************************************************
17  * DESCRIPTION:
18  * Platform dependent defines for enabling 64-bit file I/O on 32-bit machines
19  *
20  ***************************************************************************/
21 
22 #ifndef _LARGEFILES_H
23 #define _LARGEFILES_H
24 
25 #ifdef _STDIO_H
26 #error "largefiles.h must be included before system headers"
27 #endif
28 
29 #if defined(_AIX)
30 /* Define to enable large file extensions on AIX */
31 #define _LARGE_FILE
32 #define _LARGE_FILES
33 #endif
34 
35 /* Defines which enable LFS I/O interfaces for large (>2GB) file support
36  * on 32-bit machines. These must be defined before inclusion of any
37  * system headers.
38  */
39 #define _LARGEFILE_SOURCE
40 #define _FILE_OFFSET_BITS 64
41 
42 #endif