summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-06-12 13:46:21 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-06-18 00:06:46 +0200
commit03e5755b93e90cc4c09daad4c79b6016bf4ce43c (patch)
treed2992e30fcddf864ad64bd026884e79d92903977 /doc
parentb695c87abcdbe0ddc35c5e3a7ee8f5f58ee577f1 (diff)
downloadmupdf-03e5755b93e90cc4c09daad4c79b6016bf4ce43c.tar.xz
Move header files into separate include directory.
Diffstat (limited to 'doc')
-rw-r--r--doc/example.c7
-rw-r--r--doc/multi-threaded.c8
2 files changed, 5 insertions, 10 deletions
diff --git a/doc/example.c b/doc/example.c
index e50d0e21..1a21c200 100644
--- a/doc/example.c
+++ b/doc/example.c
@@ -2,15 +2,12 @@
// Compile a debug build of mupdf, then compile and run this example:
//
-// gcc -g -o build/debug/example -I fitz doc/example.c \
-// build/debug/libfitz.a build/debug/libfreetype.a \
-// build/debug/libopenjpeg.a build/debug/libjbig2dec.a \
-// build/debug/libjpeg.a -lm
+// gcc -g -o build/debug/example -Iinclude doc/example.c build/debug/lib*.a -lm
//
// build/debug/example /path/to/document.pdf 1 200 25
// Include the MuPDF header file.
-#include <fitz.h>
+#include <mupdf/fitz.h>
void
render(char *filename, int pagenumber, int zoom, int rotation)
diff --git a/doc/multi-threaded.c b/doc/multi-threaded.c
index c6a3d652..3141e3c4 100644
--- a/doc/multi-threaded.c
+++ b/doc/multi-threaded.c
@@ -13,10 +13,8 @@
// Compile a debug build of mupdf, then compile and run this example:
//
-// gcc -g -o build/debug/example-mt -I fitz doc/multi-threading.c \
-// build/debug/libfitz.a build/debug/libfreetype.a \
-// build/debug/libopenjpeg.a build/debug/libjbig2dec.a \
-// build/debug/libjpeg.a -lpthread -lm
+// gcc -g -o build/debug/example-mt -Iinclude doc/multi-threading.c \
+// build/debug/lib*.a -lpthread -lm
//
// build/debug/example-mt /path/to/document.pdf
//
@@ -26,7 +24,7 @@
// depending on your environment.
// Include the MuPDF header file, and pthread's header file.
-#include <fitz.h>
+#include <mupdf/fitz.h>
#include <pthread.h>
// A convenience function for dying abruptly on pthread errors.