gdb: Use std::min and std::max throughout
[deliverable/binutils-gdb.git] / gdb / rs6000-tdep.c
index e18064165ff68a2fbf7e6ac841a44bb0b7d3e70b..5f15780820344ddc5b8623831df72a9fe9468aef 100644 (file)
@@ -64,6 +64,7 @@
 
 #include "ax.h"
 #include "ax-gdb.h"
+#include <algorithm>
 
 #include "features/rs6000/powerpc-32.c"
 #include "features/rs6000/powerpc-altivec32.c"
@@ -2185,7 +2186,7 @@ rs6000_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
       CORE_ADDR post_prologue_pc
        = skip_prologue_using_sal (gdbarch, func_addr);
       if (post_prologue_pc != 0)
-       return max (pc, post_prologue_pc);
+       return std::max (pc, post_prologue_pc);
     }
 
   /* Can't determine prologue from the symbol table, need to examine
This page took 0.035265 seconds and 4 git commands to generate.