22 #include "../../SDL_internal.h"
23 #include "../SDL_syslocale.h"
25 #import <Foundation/Foundation.h>
30 NSArray *languages = NSLocale.preferredLanguages;
36 for (
i = 0;
i < numlangs;
i++) {
37 NSString *nsstr = [languages objectAtIndex:i];
45 [nsstr getCString:buf maxLength:buflen encoding:NSASCIIStringEncoding];
63 if (
i < (numlangs - 1)) {
GLuint GLuint GLsizei count
GLenum GLuint GLenum GLsizei const GLchar * buf
void SDL_SYS_GetPreferredLocales(char *buf, size_t buflen)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF ptr