Stack hint should look for 0, not -1, and not care about environment variables.

This commit is contained in:
Ryan C. Gordon 2015-05-26 21:19:23 -04:00
parent a8fa7bd1f7
commit baea64e642
4 changed files with 5 additions and 13 deletions

View file

@ -350,13 +350,12 @@ extern "C" {
/**
* \brief A string specifying SDL's threads stack size in bytes or "-1" for the backend's default size
* \brief A string specifying SDL's threads stack size in bytes or "0" for the backend's default size
*
* Use this hint in case you need to set SDL's threads stack size to other than the default.
* This is specially useful if you build SDL against a non glibc libc library (such as musl) which
* provides a relatively small default thread stack size (a few kilobytes versus the default 8MB glibc uses).
* Support for this hint is currenly available only in the pthread backend.
* As a precaution, this hint can not be set via an environment variable.
*/
#define SDL_HINT_THREAD_STACK_SIZE "SDL_THREAD_STACK_SIZE"