Mail Archives: djgpp/2000/01/21/10:29:50
Petr Maxa writes:
> Is there any possibility to change it
> globally signed char to unsigned as in Borland compiler ?
Use the "-funsigned-char" switch. This is documented in
the info page gcc / invoking / c dialect.
But you should be aware that ANSI makes no guarantees about
whether char type is signed or unsigned, so this can vary
across different machines and compilers, and not all systems
have options to change the default. If you care about the
signedness of char variables, it is better to explicitly
declare them as "signed char" or "unsigned char".
Shawn Hargreaves.
- Raw text -