From a4c2196055b5b1c164263af3d1e04d2d49bcdba9 Mon Sep 17 00:00:00 2001 From: John Carr Date: Mon, 13 Jan 1992 14:34:03 +0000 Subject: [PATCH] New variables to describe level of ANSI C support git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2198 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/ibm.cf | 20 ++++++++++++++++++++ src/config/ultrix.cf | 3 +++ 2 files changed, 23 insertions(+) diff --git a/src/config/ibm.cf b/src/config/ibm.cf index 818b65047..62a9a3242 100644 --- a/src/config/ibm.cf +++ b/src/config/ibm.cf @@ -41,6 +41,9 @@ #define HasInet YES #define WantPrototypes YES #define NeedNarrowPrototypes YES +#define UseVoid YES +#define UseConst YES +#define UseVolatile YES #define HCRevision 21025 @@ -70,6 +73,7 @@ #define HasPosixTypes YES #define HasStrdup YES #define HasVfprintf YES +#define HasAnsiStdio YES #define HasInet YES /* There is a compiler bug on the PS/2 running AIX 1.2.1: @@ -78,12 +82,28 @@ #define WantPrototypes YES #define NeedNarrowPrototypes YES #define UseStdarg YES +#define UseVoid YES +#define UseVolatile YES #ifdef PS2Architecture #define DesDefines -DBIG -DLSBFIRST +/* The standard PS/2 compiler generates incorrect warnings when + "const" is used and does not make const variables read only, + so there is no reason to use const. */ +/* If you are using hc on a PS/2, you may need to use the following + options: + -Hoff=recognize_library (inlined memcpy has bugs) + -Hon=long_enums (make enums 4 bytes long for vsc compatbility) + */ #else +#define CcCmd xlc +#define UseTimeH +#define UseSysTimeH #define DesDefines -DBIG -DMSBFIRST -DMUSTALIGN +#define UseConst YES #endif +#define RanlibCmd \: + #endif /* RT */ #define DefaultCDebugFlags OptimizedCDebugFlags diff --git a/src/config/ultrix.cf b/src/config/ultrix.cf index 23dfc5123..283d9c82e 100644 --- a/src/config/ultrix.cf +++ b/src/config/ultrix.cf @@ -51,6 +51,9 @@ #define HasGcc YES */ +#define UseVolatile YES +#define UseVoid YES + #define ArCmd ar cru #define LintLibFlag -o -- 2.26.2