1 // Copyright 2021 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef CORE_FXCRT_FX_TYPES_H_ 8 #define CORE_FXCRT_FX_TYPES_H_ 9 10 #include "build/build_config.h" 11 12 // PDFium file sizes match the platform. The value must be signed to support -1 13 // error returns. 14 #if BUILDFLAG(IS_WIN) 15 #include <stdint.h> 16 #define FX_FILESIZE int64_t 17 #else 18 #include <sys/types.h> // For off_t. 19 #define FX_FILESIZE off_t 20 #endif // BUILDFLAG(IS_WIN) 21 22 #endif // CORE_FXCRT_FX_TYPES_H_ 23