This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Need to include <sys/cygwin.h> to eliminate warnings in cppinit.c
- To: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Subject: Need to include <sys/cygwin.h> to eliminate warnings in cppinit.c
- From: "Billinghurst, David (CRTS)" <David dot Billinghurst at riotinto dot com>
- Date: Sat, 10 Mar 2001 23:47:26 -0000
I am trying to eliminate some gcc-3.0 bootstrap warnings on cygwin. There
are a number of warnings compiling cppinit.c, for example:
/usr/local/src/gcc/gcc/cppinit.c: In function `init_standard_includes':
/usr/local/src/gcc/gcc/cppinit.c:800: warning: implicit declaration of
function `cygwin_posix_path_list_p'
/usr/local/src/gcc/gcc/cppinit.c:800: warning: implicit declaration of
function `cygwin_win32_to_posix_path_list_buf_size'
These come from the the macro GET_ENV_PATH_LIST in xm-cygwin.h
The cygwin* functions are declared in /usr/include/sys/cygwin.h. Can we
add #include <sys/cygwin.h> to xm-cygwin.h, or is something more subtle
required?