comparison src/xmmanagerp.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 6b37e6ddd302
comparison
equal deleted inserted replaced
-1:000000000000 0:376386a54a3c
1 /* This file just includes the Motif header file ManagerP.h, but does
2 the necessary magic to do this properly.
3
4 This file is part of XEmacs.
5
6 XEmacs is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
9 later version.
10
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
20
21 /* Synched up with: Not in FSF. */
22
23 /* Motif attempts to use old '/ * * /' method of pasting tokens together
24 unless __STDC__ > 0. Bad idea, because the SunPro C compiler defines
25 __STDC__ to 0 in "lenient ANSI mode" (which is what you need to
26 compile Emacs in). Unfortunately, some compilers don't let you mess
27 around with __STDC__, so ... */
28
29 #if defined(__SUNPRO_C) && (__STDC__ == 0)
30 # undef __STDC__
31 # define __STDC__ 1
32 # define __STDC__CHANGED__
33 #endif
34
35 /* ManagerP.h doesn't exist in old versions of Motif; the stuff is
36 in XmP.h instead */
37
38 #include <Xm/Xm.h> /* to get XmVersion */
39 #if (XmVersion >= 1002)
40 # include <Xm/ManagerP.h>
41 #else
42 # include <Xm/XmP.h>
43 #endif
44
45 #ifdef __STDC__CHANGED__
46 # undef __STDC__
47 # define __STDC__ 0
48 # undef __STDC__CHANGED__
49 #endif