mirror of
https://github.com/yawut/SDL.git
synced 2026-10-27 08:59:46 -05:00
Changes since SDL 1.2.0 release
This commit is contained in:
@@ -47,6 +47,10 @@ static SDL_error SDL_global_error;
|
||||
#define SDL_GetErrBuf() (&SDL_global_error)
|
||||
#endif /* DISABLE_THREADS */
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#define DISABLE_STDIO
|
||||
#endif
|
||||
|
||||
#define SDL_ERRBUFIZE 1024
|
||||
|
||||
/* Private functions */
|
||||
@@ -120,6 +124,7 @@ void SDL_SetError (const char *fmt, ...)
|
||||
}
|
||||
va_end(ap);
|
||||
|
||||
#ifndef DISABLE_STDIO
|
||||
/* If we are in debug mode, print out an error message */
|
||||
#ifdef DEBUG_ERROR
|
||||
fprintf(stderr, "SDL_SetError: %s\n", SDL_GetError());
|
||||
@@ -128,6 +133,7 @@ void SDL_SetError (const char *fmt, ...)
|
||||
fprintf(stderr, "SDL_SetError: %s\n", SDL_GetError());
|
||||
}
|
||||
#endif
|
||||
#endif /* !DISABLE_STDIO */
|
||||
}
|
||||
|
||||
/* Print out an integer value to a UNICODE buffer */
|
||||
|
||||
Reference in New Issue
Block a user