summaryrefslogtreecommitdiff
path: root/core/include/fxcrt
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-05-08 13:21:18 -0700
committerTom Sepez <tsepez@chromium.org>2015-05-08 13:21:18 -0700
commit6661fd4c26106cd530d187b36f29be7e5c98b70f (patch)
tree1f3345dbeaaf45cd5662e59685f193926658bf6f /core/include/fxcrt
parent17ea732e8c8bba793aa57644f2325eeaaf4a1cbd (diff)
downloadpdfium-6661fd4c26106cd530d187b36f29be7e5c98b70f.tar.xz
Fix compilation under chromium checkouts.
This is a fix to hide pdfium's safe_conversions.h from the higher-level callers. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1132163002
Diffstat (limited to 'core/include/fxcrt')
-rw-r--r--core/include/fxcrt/fx_system.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/include/fxcrt/fx_system.h b/core/include/fxcrt/fx_system.h
index 9cc165f7a5..37af19c769 100644
--- a/core/include/fxcrt/fx_system.h
+++ b/core/include/fxcrt/fx_system.h
@@ -192,16 +192,8 @@ void FXSYS_vsnprintf(char *str, size_t size, const char* fmt, va_list ap);
FXSYS_FILE* FXSYS_wfopen(FX_LPCWSTR filename, FX_LPCWSTR mode);
#endif
-#ifdef __cplusplus
-} // extern "C"
-#include "../../../third_party/base/numerics/safe_conversions.h"
-#define FXSYS_strlen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(strlen(ptr))
-#define FXSYS_wcslen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(wcslen(ptr))
-extern "C" {
-#else
#define FXSYS_strlen(ptr) ((FX_STRSIZE)strlen(ptr))
#define FXSYS_wcslen(ptr) ((FX_STRSIZE)wcslen(ptr))
-#endif
#define FXSYS_wcscmp wcscmp
#define FXSYS_wcschr wcschr