From 9534243f6849d1938195c1f27adaa5745056f138 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 21 Apr 2017 16:22:20 +0200 Subject: Include required system headers. --- platform/gl/gl-font.c | 5 +++++ platform/gl/gl-input.c | 2 ++ platform/gl/gl-main.c | 8 ++++++++ platform/x11/curl_stream.c | 4 ++++ platform/x11/jstest_main.c | 3 +++ platform/x11/pdfapp.c | 5 +++++ platform/x11/pdfapp.h | 2 ++ platform/x11/x11_image.c | 4 ++++ platform/x11/x11_main.c | 4 ++++ 9 files changed, 37 insertions(+) (limited to 'platform') diff --git a/platform/gl/gl-font.c b/platform/gl/gl-font.c index 64c26711..efbba42a 100644 --- a/platform/gl/gl-font.c +++ b/platform/gl/gl-font.c @@ -14,6 +14,11 @@ #include "gl-app.h" +#include +#include +#include +#include + #define PADDING 1 /* set to 0 to save some space but disallow arbitrary transforms */ #define MAXGLYPHS 4093 /* prime number for hash table goodness */ diff --git a/platform/gl/gl-input.c b/platform/gl/gl-input.c index 59aa37ac..7ea9bafa 100644 --- a/platform/gl/gl-input.c +++ b/platform/gl/gl-input.c @@ -1,5 +1,7 @@ #include "gl-app.h" +#include + static void draw_string_part(float x, float y, const char *s, const char *e) { int c; diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c index 1d37a26c..338ed0dc 100644 --- a/platform/gl/gl-main.c +++ b/platform/gl/gl-main.c @@ -2,6 +2,14 @@ #include "mupdf/pdf.h" /* for pdf specifics and forms */ +#include +#include +#include + +#ifndef _WIN32 +#include /* for fork and exec */ +#endif + enum { /* Screen furniture: aggregate size of unusable space from title bars, task bars, window borders, etc */ diff --git a/platform/x11/curl_stream.c b/platform/x11/curl_stream.c index 5bf87de0..db5a1413 100644 --- a/platform/x11/curl_stream.c +++ b/platform/x11/curl_stream.c @@ -1,6 +1,10 @@ /* Simple example fz_stream implementation using curl */ #include "mupdf/fitz.h" + +#include +#include + #include "curl_stream.h" #define CURL_STATICLIB diff --git a/platform/x11/jstest_main.c b/platform/x11/jstest_main.c index 36b32155..bdac8be5 100644 --- a/platform/x11/jstest_main.c +++ b/platform/x11/jstest_main.c @@ -1,6 +1,9 @@ #include "pdfapp.h" +#include #include +#include +#include /* A useful bit of bash script to call this is: diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 6d2ca473..e3485489 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -1,6 +1,11 @@ #include "pdfapp.h" #include "curl_stream.h" +#include +#include +#include +#include + #define BEYOND_THRESHHOLD 40 #ifndef PATH_MAX #define PATH_MAX (1024) diff --git a/platform/x11/pdfapp.h b/platform/x11/pdfapp.h index 8dd6e6f1..54e99f95 100644 --- a/platform/x11/pdfapp.h +++ b/platform/x11/pdfapp.h @@ -4,6 +4,8 @@ #include "mupdf/fitz.h" #include "mupdf/pdf.h" +#include + /* * Utility object for handling a pdf application / view * Takes care of PDF loading and displaying and navigation, diff --git a/platform/x11/x11_image.c b/platform/x11/x11_image.c index 96bd298f..4c10987c 100644 --- a/platform/x11/x11_image.c +++ b/platform/x11/x11_image.c @@ -14,6 +14,10 @@ #include "mupdf/fitz.h" +#include +#include +#include + #include #include #include diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c index 421672de..4c96ecc9 100644 --- a/platform/x11/x11_main.c +++ b/platform/x11/x11_main.c @@ -7,6 +7,10 @@ #include #include +#include +#include +#include + #include #include #include -- cgit v1.2.3