From 880962cb81b7a34e4b90a2ecb1992f1afb13d529 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 23 Feb 2016 09:09:24 -0500 Subject: Sort includes in xfa/. This CL sorts all the includes in the xfa/ directory. There are a lot of IWYU errors that have been fixed to make things compile again. BUG=pdfium:65 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1722803002 . --- core/include/fxcrt/fx_basic.h | 2 ++ core/include/fxcrt/fx_memory.h | 2 ++ core/include/fxcrt/fx_stream.h | 1 + 3 files changed, 5 insertions(+) (limited to 'core/include') diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h index 9b1eaa5bf5..01bb6e2c76 100644 --- a/core/include/fxcrt/fx_basic.h +++ b/core/include/fxcrt/fx_basic.h @@ -398,7 +398,9 @@ class CFX_ArrayTemplate : public CFX_BasicArray { } }; typedef CFX_ArrayTemplate CFX_DWordArray; + #ifdef PDF_ENABLE_XFA +typedef CFX_ArrayTemplate CFX_WideStringCArray; typedef CFX_ArrayTemplate CFX_WordArray; typedef CFX_ArrayTemplate CFX_FloatArray; typedef CFX_ArrayTemplate CFX_ByteArray; diff --git a/core/include/fxcrt/fx_memory.h b/core/include/fxcrt/fx_memory.h index b49305aa32..d64844e743 100644 --- a/core/include/fxcrt/fx_memory.h +++ b/core/include/fxcrt/fx_memory.h @@ -12,10 +12,12 @@ #ifdef __cplusplus extern "C" { #endif + // For external C libraries to malloc through PDFium. These may return NULL. void* FXMEM_DefaultAlloc(size_t byte_size, int flags); void* FXMEM_DefaultRealloc(void* pointer, size_t new_size, int flags); void FXMEM_DefaultFree(void* pointer, int flags); + #ifdef __cplusplus } // extern "C" diff --git a/core/include/fxcrt/fx_stream.h b/core/include/fxcrt/fx_stream.h index b35b63544f..4e2f0f97ce 100644 --- a/core/include/fxcrt/fx_stream.h +++ b/core/include/fxcrt/fx_stream.h @@ -8,6 +8,7 @@ #define CORE_INCLUDE_FXCRT_FX_STREAM_H_ #include "core/include/fxcrt/fx_string.h" +#include "core/include/fxcrt/fx_system.h" void* FX_OpenFolder(const FX_CHAR* path); void* FX_OpenFolder(const FX_WCHAR* path); -- cgit v1.2.3