mirror of
https://github.com/autc04/Retro68.git
synced 2025-08-07 21:25:38 +00:00
Make things work with Universal Interfaces 3.0
This commit is contained in:
@@ -21,6 +21,15 @@
|
|||||||
#include <Dialogs.h>
|
#include <Dialogs.h>
|
||||||
#include <Fonts.h>
|
#include <Fonts.h>
|
||||||
|
|
||||||
|
#ifndef TARGET_API_MAC_CARBON
|
||||||
|
/* NOTE: this is checking whether the Dialogs.h we use *knows* about Carbon,
|
||||||
|
not whether we are actually compiling for Cabon.
|
||||||
|
If Dialogs.h is older, we add a define to be able to use the new name
|
||||||
|
for NewUserItemUPP, which used to be NewUserItemProc. */
|
||||||
|
|
||||||
|
#define NewUserItemUPP NewUserItemProc
|
||||||
|
#endif
|
||||||
|
|
||||||
pascal void ButtonFrameProc(DialogRef dlg, DialogItemIndex itemNo)
|
pascal void ButtonFrameProc(DialogRef dlg, DialogItemIndex itemNo)
|
||||||
{
|
{
|
||||||
DialogItemType type;
|
DialogItemType type;
|
||||||
|
@@ -156,7 +156,7 @@ for f in Types.h Memory.h Windows.h Errors.h; do
|
|||||||
if [ ! -r $IN/$f ]; then
|
if [ ! -r $IN/$f ]; then
|
||||||
echo "#include \"Mac$f\"" > $OUT/$f
|
echo "#include \"Mac$f\"" > $OUT/$f
|
||||||
elif [ ! -r $IN/Mac$f ]; then
|
elif [ ! -r $IN/Mac$f ]; then
|
||||||
echo "#include \"$f\"" > $OUT/$f
|
echo "#include \"$f\"" > $OUT/Mac$f
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user