From 290df1b1c741e229e398a8112939eb97b49da55d Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 13 Jan 2021 18:09:42 +0000 Subject: [PATCH] Windows: fix preprocessor syntax --- src/pipeline.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipeline.cc b/src/pipeline.cc index cf4df382..a566fb27 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -838,7 +838,7 @@ class PipelineWorker : public Napi::AsyncWorker { ->set("compression", baton->heifCompression) ->set("Q", baton->heifQuality) ->set("speed", baton->heifSpeed) -#ifdef VIPS_TYPE_FOREIGN_SUBSAMPLE +#if defined(VIPS_TYPE_FOREIGN_SUBSAMPLE) ->set("subsample_mode", baton->heifChromaSubsampling == "4:4:4" ? VIPS_FOREIGN_SUBSAMPLE_OFF : VIPS_FOREIGN_SUBSAMPLE_ON) #endif @@ -976,7 +976,7 @@ class PipelineWorker : public Napi::AsyncWorker { ->set("Q", baton->heifQuality) ->set("compression", baton->heifCompression) ->set("speed", baton->heifSpeed) -#ifdef VIPS_TYPE_FOREIGN_SUBSAMPLE +#if defined(VIPS_TYPE_FOREIGN_SUBSAMPLE) ->set("subsample_mode", baton->heifChromaSubsampling == "4:4:4" ? VIPS_FOREIGN_SUBSAMPLE_OFF : VIPS_FOREIGN_SUBSAMPLE_ON) #endif