summaryrefslogtreecommitdiff
path: root/source/xps
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/xps
parent78c1264e14804a06c6d03072c8c57820fde4e148 (diff)
downloadmupdf-9534243f6849d1938195c1f27adaa5745056f138.tar.xz
Include required system headers.
Diffstat (limited to 'source/xps')
-rw-r--r--source/xps/xps-common.c3
-rw-r--r--source/xps/xps-doc.c3
-rw-r--r--source/xps/xps-gradient.c5
-rw-r--r--source/xps/xps-image.c2
-rw-r--r--source/xps/xps-link.c3
-rw-r--r--source/xps/xps-outline.c3
-rw-r--r--source/xps/xps-path.c4
-rw-r--r--source/xps/xps-resource.c2
-rw-r--r--source/xps/xps-tile.c3
-rw-r--r--source/xps/xps-zip.c2
10 files changed, 30 insertions, 0 deletions
diff --git a/source/xps/xps-common.c b/source/xps/xps-common.c
index 1843a41c..9e590788 100644
--- a/source/xps/xps-common.c
+++ b/source/xps/xps-common.c
@@ -1,6 +1,9 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <string.h>
+#include <stdio.h> /* for sscanf */
+
static inline int unhex(int a)
{
if (a >= 'A' && a <= 'F') return a - 'A' + 0xA;
diff --git a/source/xps/xps-doc.c b/source/xps/xps-doc.c
index 23ecf17c..d13e8fb0 100644
--- a/source/xps/xps-doc.c
+++ b/source/xps/xps-doc.c
@@ -1,6 +1,9 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <string.h>
+#include <stdlib.h>
+
#define REL_START_PART \
"http://schemas.microsoft.com/xps/2005/06/fixedrepresentation"
#define REL_DOC_STRUCTURE \
diff --git a/source/xps/xps-gradient.c b/source/xps/xps-gradient.c
index c33352e0..02279677 100644
--- a/source/xps/xps-gradient.c
+++ b/source/xps/xps-gradient.c
@@ -1,6 +1,11 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <string.h>
+#include <math.h>
+#include <float.h>
+#include <stdlib.h>
+
#define MAX_STOPS 256
enum { SPREAD_PAD, SPREAD_REPEAT, SPREAD_REFLECT };
diff --git a/source/xps/xps-image.c b/source/xps/xps-image.c
index aa495566..2996b4ee 100644
--- a/source/xps/xps-image.c
+++ b/source/xps/xps-image.c
@@ -1,6 +1,8 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <string.h>
+
static fz_image *
xps_load_image(fz_context *ctx, xps_document *doc, xps_part *part)
{
diff --git a/source/xps/xps-link.c b/source/xps/xps-link.c
index 1b2423ad..c574fe35 100644
--- a/source/xps/xps-link.c
+++ b/source/xps/xps-link.c
@@ -1,6 +1,9 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <string.h>
+#include <stdlib.h>
+
/* Quick parsing of document to find links. */
static void
diff --git a/source/xps/xps-outline.c b/source/xps/xps-outline.c
index 472af0c3..6244a83d 100644
--- a/source/xps/xps-outline.c
+++ b/source/xps/xps-outline.c
@@ -1,6 +1,9 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <stdlib.h>
+#include <math.h>
+
/*
* Parse the document structure / outline parts referenced from fixdoc relationships.
*/
diff --git a/source/xps/xps-path.c b/source/xps/xps-path.c
index 750a8309..3f22ce29 100644
--- a/source/xps/xps-path.c
+++ b/source/xps/xps-path.c
@@ -1,6 +1,10 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <math.h>
+#include <string.h>
+#include <stdlib.h>
+
static char *
xps_parse_float_array(fz_context *ctx, xps_document *doc, char *s, int num, float *x)
{
diff --git a/source/xps/xps-resource.c b/source/xps/xps-resource.c
index 139d5b5c..dcc83fb3 100644
--- a/source/xps/xps-resource.c
+++ b/source/xps/xps-resource.c
@@ -1,6 +1,8 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <string.h>
+
static fz_xml *
xps_lookup_resource(fz_context *ctx, xps_document *doc, xps_resource *dict, char *name, char **urip)
{
diff --git a/source/xps/xps-tile.c b/source/xps/xps-tile.c
index 925eed40..53e223ee 100644
--- a/source/xps/xps-tile.c
+++ b/source/xps/xps-tile.c
@@ -1,6 +1,9 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <math.h>
+#include <string.h>
+
#define TILE
/*
diff --git a/source/xps/xps-zip.c b/source/xps/xps-zip.c
index 0e8d8edc..83de8ac4 100644
--- a/source/xps/xps-zip.c
+++ b/source/xps/xps-zip.c
@@ -1,6 +1,8 @@
#include "mupdf/fitz.h"
#include "xps-imp.h"
+#include <string.h>
+
static void xps_init_document(fz_context *ctx, xps_document *doc);
static xps_part *