mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
build: on linux include the X11 and Xm headers with -isystem rather than -I,
this means the compiler treats them as system headers and does not give you excessive warnings from them. This is used because X11 does not like the -ansi and -pedantic warnings that CDE is compiled with.
This commit is contained in:
parent
274bea6c1a
commit
1c7c33aa71
2 changed files with 8 additions and 1 deletions
|
@ -65,7 +65,9 @@ XCOMM $TOG: X11.rules /main/4 1997/04/30 15:23:24 kaleb $
|
||||||
#define LdPostLibs LdPostLib XLdPostLibs
|
#define LdPostLibs LdPostLib XLdPostLibs
|
||||||
|
|
||||||
#if ImportX11
|
#if ImportX11
|
||||||
# define TopXInclude -I$(TOP)/imports/x11/include
|
# ifndef TopXInclude
|
||||||
|
# define TopXInclude -I$(TOP)/imports/x11/include
|
||||||
|
# endif
|
||||||
#elif !UseInstalledX11
|
#elif !UseInstalledX11
|
||||||
# define TopXInclude -I$(TOP)/exports/include
|
# define TopXInclude -I$(TOP)/exports/include
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
XCOMM platform: $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
|
XCOMM platform: $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
|
||||||
|
|
||||||
|
/* To reduce the number of warnings generated by X11 and Motif headers that
|
||||||
|
dislike -ansi and -pedantic we can include them with -isystem instead of
|
||||||
|
-I, this tells GCC to treat them as system includes out of our control */
|
||||||
|
#define TopXInclude -isystem $(TOP)/imports/x11/include
|
||||||
|
|
||||||
#ifndef OSName
|
#ifndef OSName
|
||||||
#define OSName DefaultOSName
|
#define OSName DefaultOSName
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue