dtcalc: change from obsoleted MAXFLOAT to FLT_MAX from std C
[oweals/cde.git] / cde / lib / DtWidget / DtWidgetI.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: DtWidgetI.h /main/1 1996/03/26 19:53:18 drk $
24  *
25  * (c) Copyright 1996 Digital Equipment Corporation.
26  * (c) Copyright 1996 Hewlett-Packard Company.
27  * (c) Copyright 1996 International Business Machines Corp.
28  * (c) Copyright 1996 Sun Microsystems, Inc.
29  * (c) Copyright 1996 Novell, Inc. 
30  * (c) Copyright 1996 FUJITSU LIMITED.
31  * (c) Copyright 1996 Hitachi.
32  */
33 #ifndef _DtWidgetI_h
34 #define _DtWidgetI_h
35
36 #include <X11/Intrinsic.h>
37
38 /********    Conditionally defined macros for thread safe DtWidget ******/
39 #ifdef XTHREADS
40
41 #define _DtWidgetToAppContext(w) \
42         XtAppContext app = XtWidgetToApplicationContext(w)
43
44 #define _DtDisplayToAppContext(d) \
45         XtAppContext app = XtDisplayToApplicationContext(d)
46
47 #define _DtAppLock(app)         XtAppLock(app)
48 #define _DtAppUnlock(app)       XtAppUnlock(app)
49 #define _DtProcessLock()        XtProcessLock()
50 #define _DtProcessUnlock()      XtProcessUnlock()
51
52 #else /* XTHREADS */
53
54 #define _DtWidgetToAppContext(w)
55 #define _DtDisplayToAppContext(d)
56 #define _DtAppLock(app)
57 #define _DtAppUnlock(app)
58 #define _DtProcessLock()
59 #define _DtProcessUnlock()
60
61 #endif /* XTHREADS */
62
63 #ifdef __cplusplus
64 }  /* Close scope of 'extern "C"' declaration which encloses file. */
65 #endif
66
67 #endif /* _DtWidgetI_h */
68 /* DON'T ADD ANYTHING AFTER THIS #endif */