ext/jpeg/jpeg_image.c in jpeg-0.7.0 vs ext/jpeg/jpeg_image.c in jpeg-0.7.1

- old
+ new

@@ -72,10 +72,10 @@ rb_raise(rb_eJpegError, "Open file failed: %s", p_jpeg->filename); } } else { -#ifdef jpeg_mem_src +#if JPEG_LIB_VERSION >= 80 jpeg_mem_src(p_jpeg->read, (unsigned char *) p_jpeg->buffer, p_jpeg->buffer_len); #else if ((p_jpeg->fp = fmemopen(p_jpeg->buffer, p_jpeg->buffer_len, "rb")) == NULL) { rb_raise(rb_eJpegError, "Could not read jpeg from buffer"); }