Make things work with Universal Interfaces 3.0

This commit is contained in:
Wolfgang Thaller 2017-09-21 15:41:10 +02:00
parent 48d530bf49
commit 0ecc07538f
2 changed files with 10 additions and 1 deletions

View File

@ -21,6 +21,15 @@
#include <Dialogs.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)
{
DialogItemType type;

View File

@ -156,7 +156,7 @@ for f in Types.h Memory.h Windows.h Errors.h; do
if [ ! -r $IN/$f ]; then
echo "#include \"Mac$f\"" > $OUT/$f
elif [ ! -r $IN/Mac$f ]; then
echo "#include \"$f\"" > $OUT/$f
echo "#include \"$f\"" > $OUT/Mac$f
fi
done