From 951b1119d4c7487364bee4c5124b36453e00130d Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 2 Oct 2017 10:38:55 -0400 Subject: More define cleanup Remove unused defines; Move to .cpp files where possible; Fixup values. Change-Id: I88cd5deb04b14ab8e9f8097a695c3d0b52d64b4c Reviewed-on: https://pdfium-review.googlesource.com/15130 Reviewed-by: Henrique Nakashima Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- fxbarcode/utils.h | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'fxbarcode') diff --git a/fxbarcode/utils.h b/fxbarcode/utils.h index 9e6c70fe7c..2303af44b0 100644 --- a/fxbarcode/utils.h +++ b/fxbarcode/utils.h @@ -7,6 +7,8 @@ #ifndef FXBARCODE_UTILS_H_ #define FXBARCODE_UTILS_H_ +#include + #include #include "core/fxcrt/fx_string.h" @@ -21,21 +23,9 @@ void BC_FX_ByteString_Append(ByteString& dst, const std::vector& ba); #if _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ #include -#define FXSYS_isnan(x) _isnan(x) -#define FXSYS_nan() (std::numeric_limits::quiet_NaN()) -#endif // _FX_PLATFORM_ == _FX_PLATFORM_WINDOWS_ - -#if _FX_OS_ == _FX_OS_MACOSX_ || _FX_OS_ == _FX_OS_LINUX_ || \ - _FX_OS_ == _FX_OS_ANDROID_ -#if _FX_OS_ == _FX_OS_MACOSX_ || _FX_OS_ == _FX_OS_LINUX_ +#elif _FX_OS_ == _FX_OS_MACOSX_ || _FX_OS_ == _FX_OS_LINUX_ #include -#endif // _FX_OS_ == _FX_OS_MACOSX_ || _FX_OS_ == _FX_OS_LINUX_ - -#include -#define FXSYS_isnan(x) std::isnan(x) -#define FXSYS_nan() NAN -#endif // _FX_OS_ == _FX_OS_MACOSX_ || _FX_OS_ == _FX_OS_LINUX_ || \ - // _FX_OS_ == _FX_OS_ANDROID_ +#endif enum BCFORMAT { BCFORMAT_UNSPECIFY = -1, @@ -51,11 +41,7 @@ enum BCFORMAT { BCFORMAT_DATAMATRIX, BCFORMAT_QR_CODE }; -#define BCFORMAT_ECLEVEL_L 0 -#define BCFORMAT_ECLEVEL_M 1 -#define BCFORMAT_ECLEVEL_Q 2 -#define BCFORMAT_ECLEVEL_H 3 -#include + #define BCExceptionNO 0 #define BCExceptionIllegalArgument 16 #define BCExceptionDegreeIsNegative 31 -- cgit v1.2.3