prepare for 1.0.1
[uclibc-ng.git] / include / _lfs_64.h
blobdeee98a7745d4d39f5924ed9146cdc37513e368a
1 /*
2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5 */
6 #include <features.h>
8 #ifdef __UCLIBC_HAS_LFS__
10 #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64
11 #undef _FILE_OFFSET_BITS
12 #define _FILE_OFFSET_BITS 64
13 #endif
15 #ifndef __USE_LARGEFILE64
16 # define __USE_LARGEFILE64 1
17 #endif
19 /* We absolutely do _NOT_ want interfaces silently
20 * renamed under us or very bad things will happen... */
21 #ifdef __USE_FILE_OFFSET64
22 # undef __USE_FILE_OFFSET64
23 #endif
25 #else
27 # error Do not include this header in files not built when LFS is disabled
29 #endif