소스 검색

Fix build with libvips <8.15

DarthSim 2 년 전
부모
커밋
949c71dbf1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      vips/vips.c

+ 2 - 0
vips/vips.c

@@ -787,7 +787,9 @@ vips_strip(VipsImage *in, VipsImage **out, int keep_exif_copyright)
 
     if (
         (strcmp(name, VIPS_META_ICC_NAME) == 0) ||
+#ifdef VIPS_META_BITS_PER_SAMPLE
         (strcmp(name, VIPS_META_BITS_PER_SAMPLE) == 0) ||
+#endif
         (strcmp(name, VIPS_META_PALETTE_BITS_DEPTH) == 0) ||
         (strcmp(name, "width") == 0) ||
         (strcmp(name, "height") == 0) ||