diff --git a/src/SFML/Window/iOS/EaglContext.mm b/src/SFML/Window/iOS/EaglContext.mm index 56ee1ab7df..93fef51c37 100644 --- a/src/SFML/Window/iOS/EaglContext.mm +++ b/src/SFML/Window/iOS/EaglContext.mm @@ -164,18 +164,18 @@ void ensureInit() { static void* module = 0; - const int LIB_COUNT = 3; - const char* LIBS[LIB_COUNT] = + const int libCount = 3; + const char* libs[libCount] = { "libGLESv1_CM.dylib", "/System/Library/Frameworks/OpenGLES.framework/OpenGLES", "OpenGLES.framework/OpenGLES" }; - for ( int i = 0; i < LIB_COUNT; ++i ) + for (int i = 0; i < libCount; ++i) { - if ( !module ) - module = dlopen( LIBS[ i ], RTLD_LAZY | RTLD_LOCAL ); + if (!module) + module = dlopen(libs[i], RTLD_LAZY | RTLD_LOCAL); } if (module)