PATCH: Ada fixes for mingw32- tracebak.c (4/6)

Danny Smith danny_r_smith_2001@yahoo.co.nz
Wed Oct 22 09:44:00 GMT 2003


Another one,

This prevents a warning about redefinition of MAX (already defined in system.h,
when in !IN_RTS)

Danny


ada/Changelog

2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>

	* tracebak.c (MAX):  Undef before defining.

Index: tracebak.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/tracebak.c,v
retrieving revision 1.6
diff -c -3 -p -r1.6 tracebak.c
*** tracebak.c	21 Oct 2003 13:42:23 -0000	1.6
--- tracebak.c	22 Oct 2003 07:41:22 -0000
*************** extern unsigned int _image_base__;
*** 327,332 ****
--- 327,333 ----
  #define VALID_STACK_FRAME(ptr) 1
  #endif
  
+ #undef MAX
  #define MAX(x,y) ((x) > (y) ? (x) : (y))
  
  /* Define a dummy function to call if FORCE_CALL is defined.  Don't

http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.



More information about the Gcc-patches mailing list