summaryrefslogtreecommitdiff
path: root/platform/java
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2018-09-20 12:05:26 +0100
committerRobin Watts <robin.watts@artifex.com>2018-09-20 12:24:17 +0100
commit14f0dd1c64500c1cf12dcb47d14620afa3416d9f (patch)
treeeec9685f2a91259e71bb4f1da1236af301b72663 /platform/java
parent94d6166428a679baa5a34fc5faa18a2aa26cee4a (diff)
downloadmupdf-14f0dd1c64500c1cf12dcb47d14620afa3416d9f.tar.xz
Be consistent in use of #if FZ_ENABLE_...
Using #ifdef FZ_ENABLE_ means we build code in, even if we have defined FZ_ENABLE_WHATEVER to be 0 (as we do in config.h).
Diffstat (limited to 'platform/java')
-rw-r--r--platform/java/mupdf_native.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index 9335fa6b..6d86e425 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -1203,7 +1203,7 @@ FUN(Context_initNative)(JNIEnv *env, jclass cls)
JNIEXPORT jint JNICALL
FUN(Context_gprfSupportedNative)(JNIEnv * env, jclass class)
{
-#ifdef FZ_ENABLE_GPRF
+#if FZ_ENABLE_GPRF
return JNI_TRUE;
#else
return JNI_FALSE;
@@ -4910,7 +4910,7 @@ static char *make_tmp_gproof_path(const char *path)
JNIEXPORT jstring JNICALL
FUN(Document_proofNative)(JNIEnv *env, jobject self, jstring jCurrentPath, jstring jPrintProfile, jstring jDisplayProfile, jint inResolution)
{
-#ifdef FZ_ENABLE_GPRF
+#if FZ_ENABLE_GPRF
fz_context *ctx = get_context(env);
fz_document *doc = from_Document(env, self);
char *tmp;