ext/RMagick/rmimage.c in rmagick-2.12.1 vs ext/RMagick/rmimage.c in rmagick-2.12.2

- old
+ new

@@ -1,6 +1,6 @@ -/* $Id: rmimage.c,v 1.357 2009/10/05 21:52:56 rmagick Exp $ */ +/* $Id: rmimage.c,v 1.358 2009/10/10 21:48:49 rmagick Exp $ */ /*============================================================================\ | Copyright (C) 2009 by Timothy P. Hunter | Name: rmimage.c | Author: Tim Hunter | Purpose: Image class method definitions for RMagick @@ -5156,16 +5156,20 @@ argc -= 1; argv += 1; switch (function) { +#if defined(HAVE_ENUM_POLYNOMIALFUNCTION) case PolynomialFunction: if (argc == 0) { rb_raise(rb_eArgError, "PolynomialFunction requires at least one argument."); } break; +#endif +#if defined(HAVE_ENUM_SINUSOIDFUNCTION) case SinusoidFunction: +#endif #if defined(HAVE_ENUM_ARCSINFUNCTION) case ArcsinFunction: #endif #if defined(HAVE_ENUM_ARCTANFUNCTION) case ArctanFunction: