From: Dirk Lemstra Date: Thu, 23 Aug 2018 19:12:27 +0000 (+0200) Subject: Fixed build issue reported in #1261. X-Git-Tag: 7.0.8-11~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd9289abe5e4b71273c9856a9df371319adb5a8c;p=imagemagick Fixed build issue reported in #1261. --- diff --git a/coders/tiff.c b/coders/tiff.c index 7baf2e1f9..14aee4d5f 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -208,7 +208,6 @@ static const ExifInfo { 0, 0, 0, (char *) NULL } }; #endif -#endif /* MAGICKCORE_TIFF_DELEGATE */ /* Global declarations. @@ -229,7 +228,6 @@ static volatile MagickBooleanType /* Forward declarations. */ -#if defined(MAGICKCORE_TIFF_DELEGATE) static Image * ReadTIFFImage(const ImageInfo *,ExceptionInfo *); @@ -2285,6 +2283,7 @@ RestoreMSCWarning % */ +#if defined(MAGICKCORE_TIFF_DELEGATE) #if defined(MAGICKCORE_HAVE_TIFFMERGEFIELDINFO) && defined(MAGICKCORE_HAVE_TIFFSETTAGEXTENDER) static TIFFExtendProc tag_extender = (TIFFExtendProc) NULL; @@ -2377,6 +2376,7 @@ static void TIFFTagExtender(TIFF *tiff) TIFFIgnoreTags(tiff); } #endif +#endif ModuleExport size_t RegisterTIFFImage(void) { @@ -2388,6 +2388,7 @@ ModuleExport size_t RegisterTIFFImage(void) MagickInfo *entry; +#if defined(MAGICKCORE_TIFF_DELEGATE) if (tiff_semaphore == (SemaphoreInfo *) NULL) ActivateSemaphoreInfo(&tiff_semaphore); LockSemaphoreInfo(tiff_semaphore); @@ -2404,6 +2405,7 @@ ModuleExport size_t RegisterTIFFImage(void) instantiate_key=MagickTrue; } UnlockSemaphoreInfo(tiff_semaphore); +#endif *version='\0'; #if defined(TIFF_VERSION) (void) FormatLocaleString(version,MagickPathExtent,"%d",TIFF_VERSION); @@ -2518,6 +2520,7 @@ ModuleExport void UnregisterTIFFImage(void) (void) UnregisterMagickInfo("TIFF"); (void) UnregisterMagickInfo("TIF"); (void) UnregisterMagickInfo("PTIF"); +#if defined(MAGICKCORE_TIFF_DELEGATE) if (tiff_semaphore == (SemaphoreInfo *) NULL) ActivateSemaphoreInfo(&tiff_semaphore); LockSemaphoreInfo(tiff_semaphore); @@ -2535,6 +2538,7 @@ ModuleExport void UnregisterTIFFImage(void) } UnlockSemaphoreInfo(tiff_semaphore); RelinquishSemaphoreInfo(&tiff_semaphore); +#endif } #if defined(MAGICKCORE_TIFF_DELEGATE)