(iOS/Apple) Include <AvailabilityMacros.h instead of #import <Availability>
This commit is contained in:
parent
4550019b2c
commit
17d6a940c0
|
@ -6,7 +6,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
#import <Availability.h>
|
#include <AvailabilityMacros.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define GAMECONTROLLER_EXTERN extern "C" __attribute__((visibility ("default")))
|
#define GAMECONTROLLER_EXTERN extern "C" __attribute__((visibility ("default")))
|
||||||
|
@ -32,4 +32,4 @@
|
||||||
#import "GCExtendedGamepad.h"
|
#import "GCExtendedGamepad.h"
|
||||||
#import "GCExtendedGamepadSnapshot.h"
|
#import "GCExtendedGamepadSnapshot.h"
|
||||||
|
|
||||||
#import "GCController.h"
|
#import "GCController.h"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <Availability.h>
|
#include <AvailabilityMacros.h>
|
||||||
#include "RetroArch_Apple.h"
|
#include "RetroArch_Apple.h"
|
||||||
#import "GameController/GameController.h"
|
#import "GameController/GameController.h"
|
||||||
#include "apple_gamecontroller.h"
|
#include "apple_gamecontroller.h"
|
||||||
|
|
|
@ -20,9 +20,11 @@
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef IOS
|
#ifdef __APPLE__
|
||||||
#import <Availability.h>
|
#include <AvailabilityMacros.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef IOS
|
||||||
#ifndef __IPHONE_5_0
|
#ifndef __IPHONE_5_0
|
||||||
#warning "This project uses features only available in iOS SDK 5.0 and later."
|
#warning "This project uses features only available in iOS SDK 5.0 and later."
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1257,6 +1257,8 @@ static void xmb_frame(void)
|
||||||
|
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
(void)font_driver;
|
||||||
|
|
||||||
xmb = (xmb_handle_t*)menu->userdata;
|
xmb = (xmb_handle_t*)menu->userdata;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue