For hp-ux 7.0, must define _HPUX_SOURCE if the compiler is ANSI C.
authorChris Hanson <org/chris-hanson/cph>
Tue, 17 Apr 1990 22:20:00 +0000 (22:20 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 17 Apr 1990 22:20:00 +0000 (22:20 +0000)
v7/src/microcode/s/hpux.h

index f072fd41733a9b5333967b5980fa032f77947314..daa96500bd7e4545c0219968f87176ed8f708127 100644 (file)
@@ -1,7 +1,7 @@
 /* -*-C-*-
    System file for HP-UX
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/s/Attic/hpux.h,v 1.4 1990/01/16 19:57:57 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/s/Attic/hpux.h,v 1.5 1990/04/17 22:20:00 cph Exp $
 
 Copyright (c) 1989, 1990 Massachusetts Institute of Technology
 
@@ -52,3 +52,10 @@ MIT in each case. */
 #ifndef INSTALL_PROGRAM
 #define INSTALL_PROGRAM cp
 #endif
+
+#ifdef ALTERNATE_CC
+/* If the alternate compiler defines __STDC__ this macro must also be
+   defined or the include files don't define many necessary symbols.
+   In any case this definition does no harm. */
+#define C_SWITCH_SYSTEM -D_HPUX_SOURCE
+#endif