8042806: Splashscreen uses libjpeg-internal macros
authoromajid
Thu, 08 May 2014 19:27:24 -0400
changeset 24557 c266d1f95250
parent 24556 848deff023c7
child 24558 045a3c5d8252
8042806: Splashscreen uses libjpeg-internal macros Reviewed-by: anthony, prr
jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c
--- a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c	Thu May 08 15:17:02 2014 -0700
+++ b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_jpeg.c	Thu May 08 19:27:24 2014 -0400
@@ -25,7 +25,6 @@
 
 #include "splashscreen_impl.h"
 
-#include "jinclude.h"
 #include "jpeglib.h"
 #include "jerror.h"
 
@@ -107,11 +106,11 @@
     if (cinfo->src == NULL) {   /* first time for this JPEG object? */
         cinfo->src = (struct jpeg_source_mgr *)
             (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo,
-            JPOOL_PERMANENT, SIZEOF(stream_source_mgr));
+            JPOOL_PERMANENT, sizeof(stream_source_mgr));
         src = (stream_src_ptr) cinfo->src;
         src->buffer = (JOCTET *)
             (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo,
-            JPOOL_PERMANENT, INPUT_BUF_SIZE * SIZEOF(JOCTET));
+            JPOOL_PERMANENT, INPUT_BUF_SIZE * sizeof(JOCTET));
     }
 
     src = (stream_src_ptr) cinfo->src;