summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-04-21 16:22:20 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-04-27 15:12:01 +0200
commit9534243f6849d1938195c1f27adaa5745056f138 (patch)
treebc992482d97560154af0a576d052c78cda6bb4ab /source/html
parent78c1264e14804a06c6d03072c8c57820fde4e148 (diff)
downloadmupdf-9534243f6849d1938195c1f27adaa5745056f138.tar.xz
Include required system headers.
Diffstat (limited to 'source/html')
-rw-r--r--source/html/css-apply.c4
-rw-r--r--source/html/css-parse.c2
-rw-r--r--source/html/epub-doc.c3
-rw-r--r--source/html/html-doc.c3
-rw-r--r--source/html/html-font.c2
-rw-r--r--source/html/html-layout.c2
6 files changed, 16 insertions, 0 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c
index e1ad46ff..65323baa 100644
--- a/source/html/css-apply.c
+++ b/source/html/css-apply.c
@@ -1,6 +1,10 @@
#include "mupdf/fitz.h"
#include "html-imp.h"
+#include <string.h>
+#include <stdlib.h>
+#include <stdio.h>
+
static const char *inherit_list[] = {
"color",
"direction",
diff --git a/source/html/css-parse.c b/source/html/css-parse.c
index d92e3d7b..8dbc4dae 100644
--- a/source/html/css-parse.c
+++ b/source/html/css-parse.c
@@ -1,6 +1,8 @@
#include "mupdf/fitz.h"
#include "html-imp.h"
+#include <string.h>
+
struct lexbuf
{
fz_context *ctx;
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c
index 495b397f..20b5c2ef 100644
--- a/source/html/epub-doc.c
+++ b/source/html/epub-doc.c
@@ -1,6 +1,9 @@
#include "mupdf/fitz.h"
#include "html-imp.h"
+#include <string.h>
+#include <math.h>
+
enum { T, R, B, L };
typedef struct epub_document_s epub_document;
diff --git a/source/html/html-doc.c b/source/html/html-doc.c
index 825e3958..67587fa1 100644
--- a/source/html/html-doc.c
+++ b/source/html/html-doc.c
@@ -1,6 +1,9 @@
#include "mupdf/fitz.h"
#include "html-imp.h"
+#include <string.h>
+#include <math.h>
+
enum { T, R, B, L };
typedef struct html_document_s html_document;
diff --git a/source/html/html-font.c b/source/html/html-font.c
index 640c8565..cf572440 100644
--- a/source/html/html-font.c
+++ b/source/html/html-font.c
@@ -1,6 +1,8 @@
#include "mupdf/fitz.h"
#include "html-imp.h"
+#include <string.h>
+
static fz_font *
fz_load_html_default_font(fz_context *ctx, fz_html_font_set *set, const char *family, int is_bold, int is_italic)
{
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 8caf7e34..b4ec17a0 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -6,6 +6,8 @@
#include "hb-ft.h"
#include <ft2build.h>
+#include <math.h>
+
#undef DEBUG_HARFBUZZ
enum { T, R, B, L };