Skip to content

Commit

Permalink
Fix build with Xcode < 7
Browse files Browse the repository at this point in the history
The _Nullable attribute is not available in older versions.
  • Loading branch information
jmroot authored and slouken committed Nov 27, 2022
1 parent 1fa80ca commit 9a64aa6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/video/cocoa/SDL_cocoaopengl.m
Expand Up @@ -44,6 +44,16 @@
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif

/* _Nullable is available starting Xcode 7 */
#ifdef __has_feature
#if __has_feature(nullability)
#define HAS_FEATURE_NULLABLE
#endif
#endif
#ifndef HAS_FEATURE_NULLABLE
#define _Nullable
#endif

static SDL_bool SDL_opengl_async_dispatch = SDL_FALSE;

static void SDLCALL
Expand Down

0 comments on commit 9a64aa6

Please sign in to comment.