src/solaris/native/sun/awt/utility/rect.h
Print this page
rev 9924 : 8003900: X11 dependencies should be removed from Mac OS X build.
Reviewed-by:
Contributed-by: David DeHaven <david.dehaven@oracle.com>
*** 1,7 ****
/*
! * Copyright (c) 2007, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 26,37 ****
--- 26,47 ----
/* platform-dependent definitions */
#ifndef _AWT_RECT_H
#define _AWT_RECT_H
+ #ifdef XAWT
#include <X11/Xlib.h>
typedef XRectangle RECT_T;
+ #else
+ // For non-X systems, e.g, Mac OS X
+ typedef struct {
+ int x;
+ int y;
+ int width;
+ int height;
+ } RECT_T;
+ #endif /* XAWT */
#define RECT_EQ_X(r1,r2) ((r1).x==(r2).x && (r1).width==(r2).width)
#define RECT_SET(r,xx,yy,ww,hh) \
do { \