diff options
Diffstat (limited to 'bfd/mpw-config.in')
-rw-r--r-- | bfd/mpw-config.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bfd/mpw-config.in b/bfd/mpw-config.in new file mode 100644 index 0000000..0ada777 --- /dev/null +++ b/bfd/mpw-config.in @@ -0,0 +1,17 @@ +# Configuration fragment for BFD. + +DupIfChange {srcdir}hosts:mpw.h sysdep.h + +StreamEdit -e '/@WORDSIZE@/ Replace /@WORDSIZE@/ "32"' {srcdir}bfd-in2.h >bfd.h-new +MoveIfChange bfd.h-new bfd.h + +#DupIfChange {srcdir}mpw.bfd.h bfd.h + +Echo "#ifndef __va_list__" >varargs.h +Echo "#define __va_list__" >>varargs.h +Echo "typedef char *va_list;" >>varargs.h +Echo "#endif" >>varargs.h +Echo "#define va_dcl int va_alist;" >>varargs.h +Echo "#define va_start(list) list = (char *) &va_alist" >>varargs.h +Echo "#define va_end(list)" >>varargs.h +Echo "#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]" >>varargs.h |