1 /* Copyright (C) 2014 InfiniDB, Inc. 2 3 This program is free software; you can redistribute it and/or 4 modify it under the terms of the GNU General Public License 5 as published by the Free Software Foundation; version 2 of 6 the License. 7 8 This program is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License 14 along with this program; if not, write to the Free Software 15 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 16 MA 02110-1301, USA. */ 17 18 #ifndef _LARGEFILE64_H 19 #define _LARGEFILE64_H 20 21 #ifndef _LARGEFILE64_SOURCE 22 #define _LARGEFILE64_SOURCE 23 #endif 24 25 #ifdef _MSC_VER 26 #ifndef off64_t 27 #define off64_t __int64 28 #endif 29 #define fseek64 _fseeki64 30 #define lseek64 _lseeki64 31 #define fstat64 _fstati64 32 #define ftell64 _ftelli64 33 #define stat64 _stati64 34 #endif 35 36 #ifdef __FreeBSD__ 37 typedef int64_t off64_t; 38 # ifndef O_LARGEFILE 39 # define O_LARGEFILE 0 40 # endif 41 # ifndef O_NOATIME 42 # define O_NOATIME 0 43 # endif 44 #endif 45 46 #endif 47