diff src/glyphs-x.c @ 98:0d2f883870bc r20-1b1

Import from CVS: tag r20-1b1
author cvs
date Mon, 13 Aug 2007 09:13:56 +0200
parents 6a378aca36af
children 4be1180a9e89
line wrap: on
line diff
--- a/src/glyphs-x.c	Mon Aug 13 09:12:43 2007 +0200
+++ b/src/glyphs-x.c	Mon Aug 13 09:13:56 2007 +0200
@@ -1054,6 +1054,7 @@
 
 /* The in-core jpeg code doesn't work, so I'm avoiding it for now.  -sb  */
 #define USE_TEMP_FILES_FOR_JPEG_IMAGES 1
+#define USE_TEMP_FILES_FOR_PNG_IMAGES 1
 
 static void
 jpeg_validate (Lisp_Object instantiator)
@@ -1875,7 +1876,7 @@
   return IMAGE_COLOR_PIXMAP_MASK;
 }
 
-#if !defined (USE_TEMP_FILES_FOR_IMAGES) && (PNG_LIBPNG_VER >= 87)
+#if !defined (USE_TEMP_FILES_FOR_PNG_IMAGES) && (PNG_LIBPNG_VER >= 87)
 struct png_memory_storage
 {
   Extbyte *bytes;		/* The data       */
@@ -1894,7 +1895,7 @@
    memcpy(data,tbr->bytes + tbr->index,length);
    tbr->index = tbr->index + length;
 }
-#endif /* !USE_TEMP_FILES_FOR_IMAGESS || PNG_LIBPNG_VER >= 87 */
+#endif /* !USE_TEMP_FILES_FOR_PNG_IMAGESS || PNG_LIBPNG_VER >= 87 */
 
 struct png_unwind_data
 {
@@ -1996,7 +1997,7 @@
      this file, example.c from the libpng 0.81 distribution, and the
      pngtopnm sources. -WMP-
      */
-#if defined (USE_TEMP_FILES_FOR_IMAGES) || (PNG_LIBPNG_VER < 87)
+#if defined (USE_TEMP_FILES_FOR_PNG_IMAGES) || (PNG_LIBPNG_VER < 87)
   /* Write out to a temp file - we really should take the time to
      write appropriate memory bound IO stuff, but I am just trying
      to get the stupid thing working right now.
@@ -2032,7 +2033,7 @@
   png_read_init (png_ptr);
 
   /* Initialize the IO layer and read in header information */
-#if defined (USE_TEMP_FILES_FOR_IMAGES) || (PNG_LIBPNG_VER < 87)
+#if defined (USE_TEMP_FILES_FOR_PNG_IMAGES) || (PNG_LIBPNG_VER < 87)
   png_init_io (png_ptr, unwind.instream);
 #else
   {