projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd82aa
)
sim: mips: avoid _ namespace
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 26 Nov 2021 04:48:02 +0000
(23:48 -0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 26 Nov 2021 04:48:45 +0000
(23:48 -0500)
Some C libraries export _P symbols in their headers (like older
newlib and its ctype.h), so use P_ instead to avoid conflicts.
sim/mips/interp.c
patch
|
blob
|
history
diff --git
a/sim/mips/interp.c
b/sim/mips/interp.c
index 30d417bab569434fbc1441f44086bac3f97d343f..2cc7524d4465402afab0222da69b71fc4e61ec72 100644
(file)
--- a/
sim/mips/interp.c
+++ b/
sim/mips/interp.c
@@
-1468,14
+1468,14
@@
sim_monitor (SIM_DESC sd,
sim_io_printf(sd,"<binary not supported>");
else
{
-#define
_P
(c, fmt64, fmt32) \
+#define
P_
(c, fmt64, fmt32) \
case c: \
if (longlong) \
sim_io_printf (sd, "%" fmt64, lv); \
else \
sim_io_printf (sd, "%" fmt32, (int)lv); \
break;
-#define P(c, fmtc)
_P
(c, PRI##fmtc##64, PRI##fmtc##32)
+#define P(c, fmtc)
P_
(c, PRI##fmtc##64, PRI##fmtc##32)
switch (c)
{
P('d', d)
@@
-1486,7
+1486,7
@@
sim_monitor (SIM_DESC sd,
}
}
#undef P
-#undef
_P
+#undef
P_
}
else if (strchr ("eEfgG", c))
{