From 3585c42595a7cc037d2485294cb90bb2f27a2e89 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 3 Jul 2014 12:06:46 +0200 Subject: Fix a Xbox compilation issue --- src/threading.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/threading.c b/src/threading.c index 7898d1b..0a4c62a 100644 --- a/src/threading.c +++ b/src/threading.c @@ -86,9 +86,13 @@ THE SOFTWARE. #if defined( PLATFORM_XBOX) || defined( PLATFORM_WIN32) || defined( PLATFORM_POCKETPC) static void FAIL( char const* funcname, int rc) { +#if defined( PLATFORM_XBOX) + fprintf( stderr, "%s() failed! (%d)\n", funcname, rc ); +#else // PLATFORM_XBOX char buf[256]; FormatMessageA( FORMAT_MESSAGE_FROM_SYSTEM, NULL, rc, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buf, 256, NULL); fprintf( stderr, "%s() failed! [GetLastError() -> %d] '%s'", funcname, rc, buf); +#endif // PLATFORM_XBOX #ifdef _MSC_VER __debugbreak(); // give a chance to the debugger! #endif // _MSC_VER -- cgit v1.2.3-55-g6feb