Fri Jan 7 10:29:27 1994 Stan Shebs (shebs@andros.cygnus.com)
authorStan Shebs <shebs@codesourcery.com>
Fri, 7 Jan 1994 19:03:10 +0000 (19:03 +0000)
committerStan Shebs <shebs@codesourcery.com>
Fri, 7 Jan 1994 19:03:10 +0000 (19:03 +0000)
     * bfd-in.h: (bfd_boolean): Add workaround for systems that also
define true and false as enums.
(ALMOST_STDC): Add as alternative to __STDC__.
* bfd-in2.h: Rebuilt.
* syms.c (bfd_print_symbol_vandf): Convert a PTR to FILE*.

bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h

index ebd38d667f38631a866fcaae75c2ca5cc72c8522..09b7f8f2cc12c35fb8575be4b609ef34b1a91a0c 100644 (file)
@@ -1,3 +1,11 @@
+Fri Jan  7 10:29:27 1994  Stan Shebs  (shebs@andros.cygnus.com)
+
+       * bfd-in.h: (bfd_boolean): Add workaround for systems that also
+       define true and false as enums.
+       (ALMOST_STDC): Add as alternative to __STDC__.
+       * bfd-in2.h: Rebuilt.
+       * syms.c (bfd_print_symbol_vandf): Convert a PTR to FILE*.
+
 Thu Jan  6 14:24:44 1994  David J. Mackenzie  (djm@thepub.cygnus.com)
 
        * aoutx.h (translate_to_native_sym_flags): Catch the case where
index 5de9115dfaea3a46d0970f4a3bf8318985f8fb75..9f3a04a7b4c7fb566beb1512fb9ff7a9fc4ac07c 100644 (file)
@@ -81,7 +81,13 @@ typedef struct _bfd bfd;
    force me to change it. */
 /* typedef enum boolean {false, true} boolean; */
 /* Yup, SVR4 has a "typedef enum boolean" in <sys/types.h>  -fnf */
+/* It gets worse if the host also defines a true/false enum... -sts */
+#ifndef TRUE_FALSE_ALREADY_DEFINED
 typedef enum bfd_boolean {false, true} boolean;
+#define BFD_TRUE_FALSE
+#else
+typedef enum bfd_boolean {bfd_false, bfd_true} boolean;
+#endif
 
 /* A pointer to a position in a file.  */
 /* FIXME:  This should be using off_t from <sys/types.h>.
@@ -435,7 +441,7 @@ extern void bfd_hash_traverse PARAMS ((struct bfd_hash_table *,
 #define CAT3(a,b,c)    a##b##c
 #define CAT4(a,b,c,d)  a##b##c##d
 #else
-#ifdef __STDC__
+#if defined(__STDC__) || defined(ALMOST_STDC)
 #define CAT(a,b) a##b
 #define CAT3(a,b,c) a##b##c
 #define XCAT2(a,b)     CAT(a,b)
@@ -536,7 +542,7 @@ void                bfd_putb16         PARAMS ((bfd_vma, unsigned char *));
 void           bfd_putl16         PARAMS ((bfd_vma, unsigned char *));
 
 /* ECOFF linking routines.  */
-#ifdef __STDC__
+#if defined(__STDC__) || defined(ALMOST_STDC)
 struct ecoff_debug_info;
 struct ecoff_debug_swap;
 struct ecoff_extr;
index ef7e748fba2198860c7cf277cc47d14cce66a25a..7bad1b1859d32b6521f0c9084cb28923fc7f0f07 100644 (file)
@@ -81,7 +81,13 @@ typedef struct _bfd bfd;
    force me to change it. */
 /* typedef enum boolean {false, true} boolean; */
 /* Yup, SVR4 has a "typedef enum boolean" in <sys/types.h>  -fnf */
+/* It gets worse if the host also defines a true/false enum... -sts */
+#ifndef TRUE_FALSE_ALREADY_DEFINED
 typedef enum bfd_boolean {false, true} boolean;
+#define BFD_TRUE_FALSE
+#else
+typedef enum bfd_boolean {bfd_false, bfd_true} boolean;
+#endif
 
 /* A pointer to a position in a file.  */
 /* FIXME:  This should be using off_t from <sys/types.h>.
@@ -435,7 +441,7 @@ extern void bfd_hash_traverse PARAMS ((struct bfd_hash_table *,
 #define CAT3(a,b,c)    a##b##c
 #define CAT4(a,b,c,d)  a##b##c##d
 #else
-#ifdef __STDC__
+#if defined(__STDC__) || defined(ALMOST_STDC)
 #define CAT(a,b) a##b
 #define CAT3(a,b,c) a##b##c
 #define XCAT2(a,b)     CAT(a,b)
@@ -536,7 +542,7 @@ void                bfd_putb16         PARAMS ((bfd_vma, unsigned char *));
 void           bfd_putl16         PARAMS ((bfd_vma, unsigned char *));
 
 /* ECOFF linking routines.  */
-#ifdef __STDC__
+#if defined(__STDC__) || defined(ALMOST_STDC)
 struct ecoff_debug_info;
 struct ecoff_debug_swap;
 struct ecoff_extr;
This page took 0.030773 seconds and 4 git commands to generate.