blob: e45e6d3c8de7b0032e6c07759dd2e52b9191a259 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2014 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.
#ifndef CORE_INCLUDE_FXCRT_FX_SAFE_TYPES_H_
#define CORE_INCLUDE_FXCRT_FX_SAFE_TYPES_H_
#include <stdlib.h> // For size_t.
#include "../../../third_party/base/numerics/safe_math.h"
#include "fx_stream.h" // for FX_FILESIZE.
#include "fx_system.h"
typedef pdfium::base::CheckedNumeric<FX_DWORD> FX_SAFE_DWORD;
typedef pdfium::base::CheckedNumeric<FX_INT32> FX_SAFE_INT32;
typedef pdfium::base::CheckedNumeric<size_t> FX_SAFE_SIZE_T;
typedef pdfium::base::CheckedNumeric<FX_FILESIZE> FX_SAFE_FILESIZE;
#endif // CORE_INCLUDE_FXCRT_FX_SAFE_TYPES_H_
|