casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
X11Intrinsic.h
Go to the documentation of this file.
1 //# X11Intrinsic.h: include file to be used instead of X11/Intrinsic.h
2 //# Copyright (C) 1996,2000
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id$
27 
28 #ifndef GRAPHICS_X11INTRINSIC_H
29 #define GRAPHICS_X11INTRINSIC_H
30 
31 // <X11/Intrinsic.h> #defines true, false, casacore::Bool, and String. After inclusion
32 // of <X11/Intrinsic.h>, usage of other portions of AIPS++, e.g. the String
33 // class, may fail to compile. This file circumvents this name conflict. This
34 // file should be used in preference to <X11/Intrinsics.h> where there is the
35 // possibility of a conflict with between the X11 usage of these names
36 // and any non-X11 usage of these names.
37 
38 
39 #ifdef String
40 #undef String
41 #endif
42 #define casacore::String XWinString
43 #ifdef Bool
44 #undef Bool
45 #endif
46 #ifdef true
47 #undef true
48 #endif
49 #ifdef false
50 #undef false
51 #endif
52 #include <X11/Intrinsic.h>
53 
54 namespace casa { //# NAMESPACE CASA - BEGIN
55 
56 // <summary> Make sure some definitions ok</summary>
57 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
58 // </reviewed>
59 // <group name=definitions>
60 
61 #undef true
62 #undef false
63 #undef String
64 #undef Bool
65 // </group>
66 
67 
68 } //# NAMESPACE CASA - END
69 
70 #endif