fixinc: darwin_private_extern

Bruce Korb bkorb@veritas.com
Fri Dec 19 18:07:00 GMT 2003


Hi Geoff,

CF: the patch below

Could you please add fixinc/tests/base/mach-o/dyld.h ?
Thank you!

Regards, Bruce

RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -r1.188 -r1.189
--- gcc/gcc/fixinc/inclhack.def 2003/12/12 01:19:23     1.188
+++ gcc/gcc/fixinc/inclhack.def 2003/12/19 06:19:26     1.189
@@ -935,6 +935,22 @@
 };
 
 
+/* __private_extern__ doesn't exist in FSF GCC.  Even if it did,
+   why would you ever put it in a system header file?  */
+fix = {
+  hackname  = darwin_private_extern;
+  mach      = "*-*-darwin*";
+  files     = mach-o/dyld.h;
+  select    = "__private_extern__ [a-z_]+ _dyld_";
+  c_fix     = format;
+  c_fix_arg = "extern";
+  c_fix_arg = "__private_extern__";
+  test_text = "__private_extern__ int _dyld_func_lookup(\n"
+             "const char *dyld_func_name,\n"
+             "unsigned long *address);\n";
+};
+
+
 /*
  *  Fix <c_asm.h> on Digital UNIX V4.0:
  *  It contains a prototype for a DEC C internal asm() function,



More information about the Gcc-patches mailing list