This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Further HPUX 11.00 include file woes


Richard Begg wrote:
> 
> Bruce,
> 
> It looks like the definition in stdio.h for vsnprintf is also broken...
> attached is my proposed fix...

Looks good to me.  Well, the _fix_ looks good.  ;-)

2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>

	* fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h

Index: inclhack.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.113
diff -c -r1.113 inclhack.def
*** inclhack.def        2001/06/28 03:12:56     1.113
--- inclhack.def        2001/07/16 07:04:35
***************
*** 1296,1301 ****
--- 1296,1316 ----
 
 
  /*
+  *  Fix hpux 11.00 broken vsnprintf declaration
+  */
+ fix = {
+     hackname = hpux_vsnprintf;
+     files    = stdio.h;
+     select   = 'extern int vsnprintf\(char \*, __size_t, const char \*, __va__list\);';
+
+     c_fix     = format;
+     c_fix_arg = "extern int vsnprintf(char *, __size_t, const char *, __va_list);";
+
+     test_text = 'extern int vsnprintf(char *, __size_t, const char *, __va__list);';
+ };
+
+
+ /*
   *  Fix return type of abort and free
   */
  fix = {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]