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