Fixed bug 2121 - GCC throws error on SDL_FORCE_INLINE when compiling with -ansi

This commit is contained in:
Sam Lantinga 2013-09-30 22:35:32 -07:00
parent 76f3df86db
commit 414ff3106c
5 changed files with 23 additions and 19 deletions

View file

@ -73,9 +73,9 @@ SDL_GetPrefPath(const char *org, const char *app)
NSArray *array = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);
char *retval = NULL;
(void) org; // unused on Mac OS X and iOS.
(void) org; /* unused on Mac OS X and iOS. */
if ([array count] > 0) { // we only want the first item in the list.
if ([array count] > 0) { /* we only want the first item in the list. */
NSString *str = [array objectAtIndex:0];
const char *base = [str UTF8String];
if (base) {