fix build-toolchain, make Dialog sample compile with another Universal Headers version

This commit is contained in:
Wolfgang Thaller 2015-07-17 19:39:44 +02:00
parent a6c14ce2cc
commit e4d2e8bd00
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@
#include <Quickdraw.h>
#include <Dialogs.h>
#include <Fonts.h>
QDGlobals qd;
@ -52,7 +53,7 @@ int main()
Rect box;
GetDialogItem(dlg, 2, &type, &itemH, &box);
SetDialogItem(dlg, 2, type, (Handle) NewUserItemUPP(&ButtonFrameProc), &box);
SetDialogItem(dlg, 2, type, (Handle) NewUserItemProc(&ButtonFrameProc), &box);
ControlHandle cb, radio1, radio2;
GetDialogItem(dlg, 5, &type, &itemH, &box);

View File

@ -62,7 +62,7 @@ cd ..
sh "$SRC/prepare-headers.sh" "$SRC/CIncludes" toolchain/m68k-unknown-elf/include
mkdir -p toolchain/RIncludes
cp '$SRC/RIncludes/*.r' toolchain/RIncludes/
cp $SRC/RIncludes/*.r toolchain/RIncludes/
mkdir -p build-host
cd build-host