1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Avoid gcc warnings on Cygwin.

This commit is contained in:
Eric Blake
2009-12-22 12:26:30 +01:00
committed by Bruno Haible
parent b4eb8c5c5e
commit 5860266d3b
4 changed files with 27 additions and 17 deletions

View File

@@ -183,10 +183,10 @@ main (argc, argv)
if (len)
{
for (k = 0; k < len; k++)
if (isupper (s[k]))
s[k] = tolower (s[k]);
else if (islower (s[k]))
s[k] = toupper (s[k]);
if (isupper ((unsigned char) s[k]))
s[k] = tolower ((unsigned char) s[k]);
else if (islower ((unsigned char) s[k]))
s[k] = toupper ((unsigned char) s[k]);
hs = header_entry (s, len);
if (!(hs && my_case_strcmp (hs->field_name, s) == 0))
{

View File

@@ -15,6 +15,7 @@
# undef O_BINARY
#endif
#if O_BINARY
# include <io.h>
# define SET_BINARY(f) setmode (f, O_BINARY)
#else
# define SET_BINARY(f) (void)0