This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH win32/mingw32: jcf_open_exact_case prototype
- From: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>
- To: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 26 Jun 2004 17:33:22 -0500
- Subject: PATCH win32/mingw32: jcf_open_exact_case prototype
I've been applying the following patch to fix a no previous prototype
warning that causes bootstrap to fail at werror. Including the header
that prototypes jcf_open_exact_case causes lots of undefined symbol
warnings, and so it seems this is not the way to do this, so I just
simply prototype the function near the other file prototypes.
I don't know if this is the right way to fix this warning.
2004-06-17 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
* win32-host.c (jcf_open_exact_case): Prototype.
Index: gcc/gcc/java/win32-host.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/java/win32-host.c,v
retrieving revision 1.4
diff -c -3 -p -r1.4 win32-host.c
*** gcc/gcc/java/win32-host.c 13 Aug 2003 07:08:29 -0000 1.4
--- gcc/gcc/java/win32-host.c 18 Jun 2004 10:00:10 -0000
*************** The Free Software Foundation is independ
*** 33,38 ****
--- 33,40 ----
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
+ extern int jcf_open_exact_case (const char* filename, int oflag);
+
/* Simulate an open() failure with ENOENT */
static int
file_not_found (void);