This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Ada fixes for mingw32- tracebak.c (4/6)
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: charlet at act-europe dot fr
- Date: Wed, 22 Oct 2003 19:41:52 +1000 (EST)
- Subject: PATCH: Ada fixes for mingw32- tracebak.c (4/6)
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.