[hatari-devel] hatari 2.1.0 building fail with an old Xcode (v7) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] hatari 2.1.0 building fail with an old Xcode (v7)
- From: benoît tuduri <benoit.tuduri@xxxxxxxxx>
- Date: Thu, 8 Feb 2018 17:26:09 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=F+zkHWwl1Z7iBamDZvLiQkKFoVsINSV0FLaHXsvq+Lk=; b=PstzQ6tdk4cuWTwr6tL8xsN41E12y86KWyRPlTcyIPxzSoLXTwtCX4yuc8mjAqtqXT Wp5YoqkxNbfrHKnKdk9jRRh7St1yUH/K2YwsCTC8mBBNfvuknGFL4bqZu3pWqf7k+JXw ncstalSW+WEz8FXDwnm/HLekIVstzmJH5qNenEyHTKA9zKHsUPVWKCwi05VVAGLq0tFS dN90/C83OGn3Wy4S1Go1m5fnF8EcusbVuOVBCre6xWssogGSlt64lXModmrSMjm3ZV/7 DNWIK5g6xe1a8FJzG3tjfxUqmmGOte4lKUGb6cZzR+blGQD0OJJECSJ6xcB62VlSeiK+ PRDg==
Hi
I can not build the last version of hatari 2.1.0. A constant missing
on my Xcode.
Please, I attached a fix for it.
Regards,
# HG changeset patch
# User Benoît Tuduri <benoit.tuduri@xxxxxxxxx>
# Date 1518105868 -3600
# Thu Feb 08 17:04:28 2018 +0100
# Node ID d8612f8264c6dc9d9c0c1bbd39d0e0179a821f55
# Parent ca11115329dfb346a35d5cd0c88da574e6cac836
this constant is not available with old version of Xcode.
diff -r ca11115329df -r d8612f8264c6 src/gui-osx/PrefsController.h
--- a/src/gui-osx/PrefsController.h Thu Feb 08 00:11:25 2018 +0200
+++ b/src/gui-osx/PrefsController.h Thu Feb 08 17:04:28 2018 +0100
@@ -8,6 +8,10 @@
#import <Cocoa/Cocoa.h>
+#if (!defined MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
+#define NSAlertStyleInformational NSInformationalAlertStyle
+#endif
+
@interface PrefsController : NSObject
{
// Preferences window