Chromium Code Reviews| Index: core/include/fxcrt/fx_system.h |
| diff --git a/core/include/fxcrt/fx_system.h b/core/include/fxcrt/fx_system.h |
| index 7488e9d2dc6cff2f4e07dd89351d8d9c0282e882..391380304c936a302a77d2d5fef41e3110687e8e 100644 |
| --- a/core/include/fxcrt/fx_system.h |
| +++ b/core/include/fxcrt/fx_system.h |
| @@ -276,6 +276,10 @@ int FXSYS_round(FX_FLOAT f); |
| #ifdef __cplusplus |
| }; |
| +#include "../../../third_party/numerics/safe_math.h" |
| +typedef base::CheckedNumeric<FX_DWORD> FX_SAFE_DWORD; |
| +typedef base::CheckedNumeric<FX_INT32> FX_SAFE_INT; |
| +typedef base::CheckedNumeric<size_t> FX_SAFE_SIZET; |
|
Tom Sepez
2014/07/31 18:46:42
nit: Just to be pedantic, I'd have called this FX_
|
| #if defined(__clang__) || _MSC_VER >= 1700 |
| #define FX_FINAL final |
| #elif defined(__GNUC__) && __cplusplus >= 201103 && \ |