diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-08-22 19:34:14 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-08-22 19:34:14 (GMT) |
commit | d510ef2557df9da0b8949409e73b526d137bd13d (patch) | |
tree | 451cf8964f893de26b104b1fb57c102731c9b772 /Source/kwsys/Configure.h.in | |
parent | 211e991057ed282e6fcf07d8e9212b6136411b10 (diff) | |
download | CMake-d510ef2557df9da0b8949409e73b526d137bd13d.zip CMake-d510ef2557df9da0b8949409e73b526d137bd13d.tar.gz CMake-d510ef2557df9da0b8949409e73b526d137bd13d.tar.bz2 |
ENH: Support large file systems in kwsys
Diffstat (limited to 'Source/kwsys/Configure.h.in')
-rw-r--r-- | Source/kwsys/Configure.h.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/kwsys/Configure.h.in b/Source/kwsys/Configure.h.in index 744e884..5456467 100644 --- a/Source/kwsys/Configure.h.in +++ b/Source/kwsys/Configure.h.in @@ -22,6 +22,20 @@ # define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT #endif +/* This is a support for files on the disk that are larger than 2GB. Since + this is the first place that any include should happen, do this here. */ +#if @KWSYS_REQUIRE_LARGE_FILE_SUPPORT@ +# ifndef _LARGEFILE_SOURCE +# define _LARGEFILE_SOURCE +# endif +# ifndef _LARGE_FILES +# define _LARGE_FILES +# endif +# ifndef _FILE_OFFSET_BITS +# define _FILE_OFFSET_BITS 64 +# endif +#endif + /* Setup the export macro. */ #if defined(_WIN32) && @KWSYS_BUILD_SHARED@ # if defined(@KWSYS_NAMESPACE@_EXPORTS) |