diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-21 16:22:20 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-27 15:12:01 +0200 |
commit | 9534243f6849d1938195c1f27adaa5745056f138 (patch) | |
tree | bc992482d97560154af0a576d052c78cda6bb4ab /platform | |
parent | 78c1264e14804a06c6d03072c8c57820fde4e148 (diff) | |
download | mupdf-9534243f6849d1938195c1f27adaa5745056f138.tar.xz |
Include required system headers.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/gl/gl-font.c | 5 | ||||
-rw-r--r-- | platform/gl/gl-input.c | 2 | ||||
-rw-r--r-- | platform/gl/gl-main.c | 8 | ||||
-rw-r--r-- | platform/x11/curl_stream.c | 4 | ||||
-rw-r--r-- | platform/x11/jstest_main.c | 3 | ||||
-rw-r--r-- | platform/x11/pdfapp.c | 5 | ||||
-rw-r--r-- | platform/x11/pdfapp.h | 2 | ||||
-rw-r--r-- | platform/x11/x11_image.c | 4 | ||||
-rw-r--r-- | platform/x11/x11_main.c | 4 |
9 files changed, 37 insertions, 0 deletions
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 <string.h> +#include <math.h> +#include <stdlib.h> +#include <stdio.h> + #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 <string.h> + 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 <string.h> +#include <stdlib.h> +#include <stdio.h> + +#ifndef _WIN32 +#include <unistd.h> /* 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 <string.h> +#include <stdlib.h> + #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 <string.h> #include <ctype.h> +#include <stdlib.h> +#include <stdio.h> /* 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 <string.h> +#include <limits.h> +#include <stdlib.h> +#include <stdio.h> + #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 <time.h> + /* * 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 <string.h> +#include <stdlib.h> +#include <stdio.h> + #include <X11/Xlib.h> #include <X11/Xutil.h> #include <sys/ipc.h> 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 <X11/keysym.h> #include <X11/XF86keysym.h> +#include <string.h> +#include <stdlib.h> +#include <stdio.h> + #include <sys/select.h> #include <sys/time.h> #include <sys/types.h> |