Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 2/2] Improve portability: Avoid SS constant as it is already defined

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:14

David Soria Parra [off-list ref] writes:
From: David Soria Parra <redacted>

Constants that have the names of CPU registers are already defined
in OpenSolaris's sys/regset.h. This causes a warning as we try to
(re)define SS in ctype.c. So we just use another name.
I do not mind this _particular_ workaround per-se, but I have to wonder
what happens the next time some random other platform has "SP" defined in
a random header file.

First of all, why are you including <sys/regset.h>?  We certainly don't
include from any of our header or source files.  And second of all, why is
the indirect inclusion of that header file by some standard header file we
do include cause the namespace to get poluted with "SS" symbol?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help