from Noah Friedman: define some needed macros if hpux version < 8
authorKen Raeburn <raeburn@cygnus>
Mon, 8 Mar 1993 20:42:00 +0000 (20:42 +0000)
committerKen Raeburn <raeburn@cygnus>
Mon, 8 Mar 1993 20:42:00 +0000 (20:42 +0000)
bfd/hppa.c

index 33ac2ac1c8dce4b0e9cd2ab085001503ea5e9d02..19a237094f180c9b6adfb71d0c15f7c8b1d51f10 100644 (file)
@@ -38,6 +38,29 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/file.h>
 #include <errno.h>
  
+/* Magic not defined in standard HP-UX header files until 8.0 */
+
+#ifndef CPU_PA_RISC1_0
+#define CPU_PA_RISC1_0 0x20B
+#endif /* CPU_PA_RISC1_0 */
+#ifndef CPU_PA_RISC1_1
+#define CPU_PA_RISC1_1 0x210
+#endif /* CPU_PA_RISC1_1 */
+#ifndef _PA_RISC1_0_ID
+#define _PA_RISC1_0_ID CPU_PA_RISC1_0
+#endif /* _PA_RISC1_0_ID */
+#ifndef _PA_RISC1_1_ID
+#define _PA_RISC1_1_ID CPU_PA_RISC1_1
+#endif /* _PA_RISC1_1_ID */
+#ifndef _PA_RISC_MAXID
+#define _PA_RISC_MAXID 0x2FF
+#endif /* _PA_RISC_MAXID */
+#ifndef _PA_RISC_ID
+#define _PA_RISC_ID(__m_num)           \
+    (((__m_num) == _PA_RISC1_0_ID) ||  \
+     ((__m_num) >= _PA_RISC1_1_ID && (__m_num) <= _PA_RISC_MAXID))
+#endif /* _PA_RISC_ID */
+
 struct container {
   struct header f;
   struct som_exec_auxhdr e;
This page took 0.025277 seconds and 4 git commands to generate.