comparison src/xmmanagerp.h @ 157:6b37e6ddd302 r20-3b5

Import from CVS: tag r20-3b5
author cvs
date Mon, 13 Aug 2007 09:40:41 +0200
parents 376386a54a3c
children 74fd4e045ea6
comparison
equal deleted inserted replaced
156:60baf0b43294 157:6b37e6ddd302
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */ 19 Boston, MA 02111-1307, USA. */
20 20
21 /* Synched up with: Not in FSF. */ 21 /* Synched up with: Not in FSF. */
22 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 23 /* ManagerP.h doesn't exist in old versions of Motif; the stuff is
36 in XmP.h instead */ 24 in XmP.h instead */
37 25
38 #include <Xm/Xm.h> /* to get XmVersion */ 26 #include <Xm/Xm.h> /* to get XmVersion */
39 #if (XmVersion >= 1002) 27 #if (XmVersion >= 1002)
40 # include <Xm/ManagerP.h> 28 # include <Xm/ManagerP.h>
41 #else 29 #else
42 # include <Xm/XmP.h> 30 # include <Xm/XmP.h>
43 #endif 31 #endif
44
45 #ifdef __STDC__CHANGED__
46 # undef __STDC__
47 # define __STDC__ 0
48 # undef __STDC__CHANGED__
49 #endif