# HG changeset patch # User ddehaven # Date 1400002152 25200 # Tue May 13 10:29:12 2014 -0700 # Node ID baab90fcb748f6ac28c9b95edf4be1f8b733c071 # Parent 9c6ff56dfe00aac7e1307ac944b91b8d6ff504d7 8003900: X11 dependencies should be removed from Mac OS X build. Reviewed-by: Contributed-by: David DeHaven diff --git a/make/lib/Awt2dLibraries.gmk b/make/lib/Awt2dLibraries.gmk --- a/make/lib/Awt2dLibraries.gmk +++ b/make/lib/Awt2dLibraries.gmk @@ -318,7 +318,7 @@ endif ifeq ($(OPENJDK_TARGET_OS), macosx) - LIBAWT_FILES += awt_LoadLibrary.c img_colors.c + LIBAWT_FILES += awt_LoadLibrary.c LIBAWT_CFLAGS += -F/System/Library/Frameworks/JavaVM.framework/Frameworks endif diff --git a/src/solaris/native/sun/awt/awt.h b/src/solaris/native/sun/awt/awt.h --- a/src/solaris/native/sun/awt/awt.h +++ b/src/solaris/native/sun/awt/awt.h @@ -34,9 +34,9 @@ #include "jni_util.h" #include "debug_util.h" -#ifndef HEADLESS +#if !defined(HEADLESS) && !defined(MACOSX) #include -#endif /* !HEADLESS */ +#endif /* !HEADLESS && !MACOSX */ /* The JVM instance: defined in awt_MToolkit.c */ @@ -110,9 +110,9 @@ #define AWT_NOTIFY() AWT_NOTIFY_IMPL() #define AWT_NOTIFY_ALL() AWT_NOTIFY_ALL_IMPL() -#ifndef HEADLESS +#if !defined(HEADLESS) && !defined(MACOSX) extern Display *awt_display; /* awt_GraphicsEnv.c */ extern Boolean awt_ModLockIsShiftLock; /* XToolkit.c */ -#endif /* !HEADLESS */ +#endif /* !HEADLESS && !MACOSX */ #endif /* ! _AWT_ */ diff --git a/src/solaris/native/sun/awt/color.h b/src/solaris/native/sun/awt/color.h --- a/src/solaris/native/sun/awt/color.h +++ b/src/solaris/native/sun/awt/color.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2001, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,13 +28,13 @@ #include "awt.h" #include "colordata.h" -#ifndef HEADLESS +#if !defined(HEADLESS) && !defined(MACOSX) typedef struct { unsigned int Depth; XPixmapFormatValues wsImageFormat; ImgColorData clrdata; ImgConvertFcn *convert[NUM_IMGCV]; } awtImageData; -#endif /* !HEADLESS */ +#endif /* !HEADLESS && !MACOSX */ #endif /* _COLOR_H_ */ diff --git a/src/solaris/native/sun/awt/img_util_md.h b/src/solaris/native/sun/awt/img_util_md.h --- a/src/solaris/native/sun/awt/img_util_md.h +++ b/src/solaris/native/sun/awt/img_util_md.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2001, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -25,7 +25,7 @@ #include "color.h" -#ifndef HEADLESS +#if !defined(HEADLESS) && !defined(MACOSX) typedef struct { ImgConvertData cvdata; /* The data needed by ImgConvertFcn's */ struct Hsun_awt_image_ImageRepresentation *hJavaObject; /* backptr */ @@ -68,7 +68,7 @@ #define MaskScan(cvdata) \ ((((IRData *)cvdata)->maskim->bytes_per_line) >> 2) -#endif /* !HEADLESS */ +#endif /* !HEADLESS && !MACOSX */ #define MaskOffset(x) ((x) >> 5) diff --git a/src/solaris/native/sun/awt/utility/rect.h b/src/solaris/native/sun/awt/utility/rect.h --- a/src/solaris/native/sun/awt/utility/rect.h +++ b/src/solaris/native/sun/awt/utility/rect.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2014 Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,8 +28,18 @@ #ifndef _AWT_RECT_H #define _AWT_RECT_H +#ifndef MACOSX #include typedef XRectangle RECT_T; +#else +// OSX still needs this for BitmapToYXBandedRectangles +typedef struct { + int x; + int y; + int width; + int height; +} RECT_T; +#endif /* !MACOSX */ #define RECT_EQ_X(r1,r2) ((r1).x==(r2).x && (r1).width==(r2).width)