{
UnlockPixels (GetGWorldPixMap (ximg));
}
-#endif
+#endif /* MAC_OS */
/* Functions to access the contents of a bitmap, given an id. */
Lisp_Object spec;
{
struct image_cache *c = FRAME_X_IMAGE_CACHE (f);
+#ifdef _MSC_VER
+ /* Work around a problem with MinGW builds of graphics libraries
+ not honoring calling conventions. */
+ static
+#endif
struct image *img;
int i;
unsigned hash;
}
#endif /* MAC_OS */
-
+
\f
/***********************************************************************
PNG_PTR is a pointer to the PNG control structure. Copy LENGTH
bytes from the input to DATA. */
+#ifdef _MSC_VER
+ /* Work around a problem with MinGW builds of graphics libraries
+ not honoring calling conventions. */
+#pragma optimize("g", off)
+#endif
+
static void
png_read_from_memory (png_ptr, data, length)
png_structp png_ptr;
tbr->index = tbr->index + length;
}
+#ifdef _MSC_VER
+/* Restore normal optimization, as specified on the command line. */
+#pragma optimize("", on)
+#endif
+
/* Load PNG image IMG for use on frame F. Value is non-zero if
successful. */