summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-15 15:55:20 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-15 16:02:46 +0100
commit2198dc6bf7e23d06fc7ebf972ef3226aea1505b1 (patch)
tree236e558ad696bc5f1b7054883f63d1779dde87c9
parenta606aa34c186dba3b4b8eadc1be5ba0fcb462ed2 (diff)
downloadmupdf-2198dc6bf7e23d06fc7ebf972ef3226aea1505b1.tar.xz
Fix -DNOCJK build warnings.
-rw-r--r--source/pdf/pdf-cmap-table.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/pdf/pdf-cmap-table.c b/source/pdf/pdf-cmap-table.c
index ca03d865..9bd89ba5 100644
--- a/source/pdf/pdf-cmap-table.c
+++ b/source/pdf/pdf-cmap-table.c
@@ -1,15 +1,14 @@
#include "mupdf/pdf.h"
#ifndef NOCJK
+
#include "gen_cmap_cns.h"
#include "gen_cmap_gb.h"
#include "gen_cmap_japan.h"
#include "gen_cmap_korea.h"
-#endif
static const struct { char *name; pdf_cmap *cmap; } cmap_table[] =
{
-#ifndef NOCJK
{"78-EUC-H",&cmap_78_EUC_H},
{"78-EUC-V",&cmap_78_EUC_V},
{"78-H",&cmap_78_H},
@@ -185,7 +184,6 @@ static const struct { char *name; pdf_cmap *cmap; } cmap_table[] =
{"UniKS-X",&cmap_UniKS_X},
{"V",&cmap_V},
{"WP-Symbol",&cmap_WP_Symbol},
-#endif
};
pdf_cmap *
@@ -206,3 +204,13 @@ pdf_load_builtin_cmap(fz_context *ctx, char *cmap_name)
}
return NULL;
}
+
+#else
+
+pdf_cmap *
+pdf_load_builtin_cmap(fz_context *ctx, char *cmap_name)
+{
+ return NULL;
+}
+
+#endif