Index: Source/NSBitmapImageRep+JPEG.m
===================================================================
--- Source/NSBitmapImageRep+JPEG.m	(revision 26800)
+++ Source/NSBitmapImageRep+JPEG.m	(working copy)
@@ -465,7 +465,11 @@
         }
     }
 
+#if defined (C_LOSSLESS_SUPPORTED) || defined(D_LOSSLESS_SUPPORTED)
+  isProgressive = (cinfo.process == JPROC_PROGRESSIVE);
+#else
   isProgressive = cinfo.progressive_mode;
+#endif
 
   /* done */
   jpeg_finish_decompress(&cinfo);
@@ -599,7 +603,12 @@
   progressiveNumber = [properties objectForKey: NSImageProgressive];
   if (progressiveNumber != nil)
     {
+#if defined (C_LOSSLESS_SUPPORTED) || defined(D_LOSSLESS_SUPPORTED)
+      if ([progressiveNumber boolValue])
+        cinfo.process = JPROC_PROGRESSIVE;
+#else
       cinfo.progressive_mode = [progressiveNumber boolValue];
+#endif
     }
 
 
