Explorar o código

use LC_ALL (osx fixes)

Nicolas Cannasse %!s(int64=5) %!d(string=hai) anos
pai
achega
ec87b8b2c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libs/sdl/sdl.c

+ 1 - 1
libs/sdl/sdl.c

@@ -98,7 +98,7 @@ HL_PRIM bool HL_NAME(init_once)() {
 		hl_error("SDL_Init failed: %s", hl_to_utf16(SDL_GetError()));
 		return false;
 	}
-	setlocale(LC_NUMERIC, "C");
+	setlocale(LC_ALL, "C");
 #	ifdef _WIN32
 	// Set the internal windows timer period to 1ms (will give accurate sleep for vsync)
 	timeBeginPeriod(1);