summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2014-08-12 14:43:18 -0700
committerTom Sepez <tsepez@chromium.org>2014-08-12 14:43:18 -0700
commit9fa56b72aeaaa7c8e86d232797d887a4346af5ac (patch)
treee79a1f7510185e821252e0fad61eae73f4661b58 /core
parent87708e18c8244feecb8e58e9dc8861118061f8de (diff)
downloadpdfium-9fa56b72aeaaa7c8e86d232797d887a4346af5ac.tar.xz
Fix missing or broken include guard macros in pdfium headers.
This has no ill-effect at present, but may be distracting when viewing the file since it just looks wrong. R=jun_fang@foxitsoftware.com Review URL: https://codereview.chromium.org/461933003
Diffstat (limited to 'core')
-rw-r--r--core/include/fpdfdoc/fpdf_ap.h4
-rw-r--r--core/src/fpdfapi/fpdf_page/pageint.h5
-rw-r--r--core/src/fpdfdoc/pdf_vt.h4
-rw-r--r--core/src/fxge/dib/dib_int.h7
-rw-r--r--core/src/fxge/ge/text_int.h5
5 files changed, 24 insertions, 1 deletions
diff --git a/core/include/fpdfdoc/fpdf_ap.h b/core/include/fpdfdoc/fpdf_ap.h
index c2299fc0fc..78f9676221 100644
--- a/core/include/fpdfdoc/fpdf_ap.h
+++ b/core/include/fpdfdoc/fpdf_ap.h
@@ -4,7 +4,9 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+#ifndef _FPDF_AP_H_
#define _FPDF_AP_H_
+
#include "../fxcrt/fx_basic.h"
#include "../fpdfapi/fpdf_parser.h"
#include "fpdf_vt.h"
@@ -90,3 +92,5 @@ public:
static CFX_ByteString GenerateColorAP(const CPVT_Color & color, const FX_BOOL & bFillOrStroke);
};
+
+#endif // _FPDF_AP_H_
diff --git a/core/src/fpdfapi/fpdf_page/pageint.h b/core/src/fpdfapi/fpdf_page/pageint.h
index 4e097ca49e..52aded078c 100644
--- a/core/src/fpdfapi/fpdf_page/pageint.h
+++ b/core/src/fpdfapi/fpdf_page/pageint.h
@@ -4,6 +4,9 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+#ifndef _PAGEINT_H_
+#define _PAGEINT_H_
+
#include "../../../include/fpdfapi/fpdf_pageobj.h"
#define PARSE_STEP_LIMIT 100
#define STREAM_PARSE_BUFSIZE 20480
@@ -503,3 +506,5 @@ public:
protected:
CFX_MapByteStringToPtr m_NamingCache;
};
+
+#endif // _PAGEINT_H_
diff --git a/core/src/fpdfdoc/pdf_vt.h b/core/src/fpdfdoc/pdf_vt.h
index 09ed0b0317..8fc9c7c099 100644
--- a/core/src/fpdfdoc/pdf_vt.h
+++ b/core/src/fpdfdoc/pdf_vt.h
@@ -4,7 +4,9 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+#ifndef _PDF_VT_H_
#define _PDF_VT_H_
+
class CPVT_Size;
class CPVT_FloatRect;
struct CPVT_SectionInfo;
@@ -637,3 +639,5 @@ private:
CPVT_WordPlace m_CurPos;
CPDF_VariableText * m_pVT;
};
+
+#endif // _PDF_VT_H_
diff --git a/core/src/fxge/dib/dib_int.h b/core/src/fxge/dib/dib_int.h
index 1e6d82ea86..19dc358133 100644
--- a/core/src/fxge/dib/dib_int.h
+++ b/core/src/fxge/dib/dib_int.h
@@ -1,9 +1,12 @@
// 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.
-
+
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+#ifndef _DIB_INT_H_
+#define _DIB_INT_H_
+
class CPDF_FixedMatrix : public CFX_Object
{
public:
@@ -86,3 +89,5 @@ public:
void StretchVert();
int m_State;
};
+
+#endif // _DIB_INT_H_
diff --git a/core/src/fxge/ge/text_int.h b/core/src/fxge/ge/text_int.h
index a3c9417bfc..c8d55965e3 100644
--- a/core/src/fxge/ge/text_int.h
+++ b/core/src/fxge/ge/text_int.h
@@ -4,6 +4,9 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
+#ifndef _TEXT_INT_H_
+#define _TEXT_INT_H_
+
struct _CFX_UniqueKeyGen {
void Generate(int count, ...);
FX_CHAR m_Key[128];
@@ -98,3 +101,5 @@ public:
int m_PitchFamily;
CFX_ByteString m_FontTables;
};
+
+#endif // _TEXT_INT_H_