PATCH win32/mingw32: jcf_open_exact_case prototype

Aaron W. LaFramboise aaronavay62@aaronwl.com
Sun Jun 27 03:09:00 GMT 2004


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);



More information about the Gcc-patches mailing list