comparison src/SDL_error.c @ 1:cf2af46e9e2a

Changes since SDL 1.2.0 release
author Sam Lantinga <slouken@lokigames.com>
date Thu, 26 Apr 2001 16:50:19 +0000
parents 74212992fb08
children e8157fcb3114
comparison
equal deleted inserted replaced
0:74212992fb08 1:cf2af46e9e2a
44 /* The default (non-thread-safe) global error variable */ 44 /* The default (non-thread-safe) global error variable */
45 static SDL_error SDL_global_error; 45 static SDL_error SDL_global_error;
46 46
47 #define SDL_GetErrBuf() (&SDL_global_error) 47 #define SDL_GetErrBuf() (&SDL_global_error)
48 #endif /* DISABLE_THREADS */ 48 #endif /* DISABLE_THREADS */
49
50 #ifdef __CYGWIN__
51 #define DISABLE_STDIO
52 #endif
49 53
50 #define SDL_ERRBUFIZE 1024 54 #define SDL_ERRBUFIZE 1024
51 55
52 /* Private functions */ 56 /* Private functions */
53 57
118 } 122 }
119 } 123 }
120 } 124 }
121 va_end(ap); 125 va_end(ap);
122 126
127 #ifndef DISABLE_STDIO
123 /* If we are in debug mode, print out an error message */ 128 /* If we are in debug mode, print out an error message */
124 #ifdef DEBUG_ERROR 129 #ifdef DEBUG_ERROR
125 fprintf(stderr, "SDL_SetError: %s\n", SDL_GetError()); 130 fprintf(stderr, "SDL_SetError: %s\n", SDL_GetError());
126 #else 131 #else
127 if ( getenv("SDL_DEBUG") ) { 132 if ( getenv("SDL_DEBUG") ) {
128 fprintf(stderr, "SDL_SetError: %s\n", SDL_GetError()); 133 fprintf(stderr, "SDL_SetError: %s\n", SDL_GetError());
129 } 134 }
130 #endif 135 #endif
136 #endif /* !DISABLE_STDIO */
131 } 137 }
132 138
133 /* Print out an integer value to a UNICODE buffer */ 139 /* Print out an integer value to a UNICODE buffer */
134 static int PrintInt(Uint16 *str, unsigned int maxlen, int value) 140 static int PrintInt(Uint16 *str, unsigned int maxlen, int value)
135 { 141 {