Permalink
Browse files

Restore preprocessor test for HAVE_QUANTUMPIXEL. That enum value is n…

…ot defined in some releases of IM.
  • Loading branch information...
1 parent 8c05142 commit 62f7e03046d8393f2a291d980a2c28e62b86c587 rmagick committed Mar 31, 2007
Showing with 3 additions and 1 deletion.
  1. +3 −1 ext/RMagick/rmimage.c
@@ -1,4 +1,4 @@
-/* $Id: rmimage.c,v 1.192.2.3 2007/03/29 22:49:00 rmagick Exp $ */
+/* $Id: rmimage.c,v 1.192.2.4 2007/03/31 13:45:05 rmagick Exp $ */
/*============================================================================\
| Copyright (C) 2007 by Timothy P. Hunter
| Name: rmimage.c
@@ -5317,9 +5317,11 @@ Image_import_pixels(int argc, VALUE *argv, VALUE self)
case FloatPixel:
type_sz = sizeof(float);
break;
+#if defined(HAVE_QUANTUMPIXEL)
case QuantumPixel:
type_sz = sizeof(Quantum);
break;
+#endif
default:
rb_raise(rb_eArgError, "unsupported storage type %s", StorageType_name(stg_type));
break;

0 comments on commit 62f7e03

Please sign in to comment.