* defs.h: Don't check for definition of LONGEST.
authorTom Tromey <tromey@redhat.com>
Mon, 10 Dec 2012 20:06:24 +0000 (20:06 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 10 Dec 2012 20:06:24 +0000 (20:06 +0000)
(min, max): Remove duplicates.

gdb/ChangeLog
gdb/defs.h

index fc84e68..05d093a 100644 (file)
@@ -1,5 +1,10 @@
 2012-12-10  Tom Tromey  <tromey@redhat.com>
 
+       * defs.h: Don't check for definition of LONGEST.
+       (min, max): Remove duplicates.
+
+2012-12-10  Tom Tromey  <tromey@redhat.com>
+
        * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
        (dwarf2_fetch_die_loc_cu_off): Rename from
        dwarf2_fetch_die_location_block.  Rewrite to use
index 369ee7a..ee49a89 100644 (file)
@@ -116,8 +116,6 @@ typedef bfd_vma CORE_ADDR;
 
 /* This is to make sure that LONGEST is at least as big as CORE_ADDR.  */
 
-#ifndef LONGEST
-
 #ifdef BFD64
 
 #define LONGEST BFD_HOST_64_BIT
@@ -130,8 +128,6 @@ typedef bfd_vma CORE_ADDR;
 
 #endif /* No BFD64 */
 
-#endif /* ! LONGEST */
-
 #ifndef min
 #define min(a, b) ((a) < (b) ? (a) : (b))
 #endif
@@ -618,12 +614,6 @@ enum gdb_osabi
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
-#ifndef min
-#define min(a, b) ((a) < (b) ? (a) : (b))
-#endif
-#ifndef max
-#define max(a, b) ((a) > (b) ? (a) : (b))
-#endif
 
 
 #ifndef atof