Amesos Package Browser (Single Doxygen Collection) Development
amesos_cholmod_io64.h
Go to the documentation of this file.
00001 /* ========================================================================== */
00002 /* === Include/cholmod_io64 ================================================= */
00003 /* ========================================================================== */
00004 
00005 /* -----------------------------------------------------------------------------
00006  * CHOLMOD/Include/cholmod_io64.h.
00007  * Copyright (C) 2005-2006, Univ. of Florida.  Author: Timothy A. Davis
00008  * CHOLMOD/Include/cholmod_io64.h is licensed under Version 2.1 of the GNU
00009  * Lesser General Public License.  See lesser.txt for a text of the license.
00010  * CHOLMOD is also available under other licenses; contact authors for details.
00011  * http://www.cise.ufl.edu/research/sparse
00012  * -------------------------------------------------------------------------- */
00013 
00014 /* Definitions required for large file I/O, which must come before any other
00015  * #includes.  These are not used if -DNLARGEFILE is defined at compile time.
00016  * Large file support may not be portable across all platforms and compilers;
00017  * if you encounter an error here, compile your code with -DNLARGEFILE.  In
00018  * particular, you must use -DNLARGEFILE for MATLAB 6.5 or earlier (which does
00019  * not have the io64.h include file).
00020  */
00021 
00022 #ifndef AMESOS_CHOLMOD_IO_H
00023 #define AMESOS_CHOLMOD_IO_H
00024 
00025 /* skip all of this if NLARGEFILE is defined at the compiler command line */
00026 #ifndef NLARGEFILE
00027 
00028 #if defined(MATLAB_MEX_FILE) || defined(MATHWORKS)
00029 
00030 /* CHOLMOD is being compiled as a MATLAB MEX file, or for use inside MATLAB */
00031 #include "io64.h"
00032 
00033 #else
00034 
00035 /* CHOLMOD is being compiled in a stand-alone library */
00036 #undef  _LARGEFILE64_SOURCE
00037 #define _LARGEFILE64_SOURCE
00038 #undef  _FILE_OFFSET_BITS
00039 #define _FILE_OFFSET_BITS 64
00040 
00041 #endif
00042 
00043 #endif
00044 
00045 #endif
00046 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines