blob: bbee34ef01547bb22a8c52a9008e920f91cdc560 [file] [log] [blame]
// Copyright 2021 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef CORE_FXCRT_FX_TYPES_H_
#define CORE_FXCRT_FX_TYPES_H_
#include "build/build_config.h"
// PDFium file sizes match the platform. The value must be signed to support -1
// error returns.
#if BUILDFLAG(IS_WIN)
#include <stdint.h>
#define FX_FILESIZE int64_t
#else
#include <sys/types.h> // For off_t.
#define FX_FILESIZE off_t
#endif // BUILDFLAG(IS_WIN)
#endif // CORE_FXCRT_FX_TYPES_H_