fix compiler warning/error on different type

This commit is contained in:
bebbo 2024-10-02 16:54:46 +02:00
parent f1779bdca0
commit 9fd7312b89

3
mkstub
View File

@ -119,7 +119,7 @@ void ** __ptr_to_${n} = &__export_${n};
else
echo >>$dir/export-$out.c "
extern void ${n}();
extern void *${n};
__attribute__((section(\".dlist_so_export_${n}\")))
char const * __name_${n} = \"${n}\";
__attribute__((section(\".dlist_so_export_${n}\")))
@ -196,5 +196,6 @@ m68k-amigaos-gcc -resident -Os -fomit-frame-pointer export*.c -c
popd >/dev/null
if [[ "$*" != "" ]]; then
echo m68k-amigaos-gcc -shared -noixemul $* $dir/export-$out.o -o ${out}.library
m68k-amigaos-gcc -shared -noixemul $* $dir/export-$out.o -o ${out}.library
fi