diff options
Diffstat (limited to 'Build/source/libs/freetype2/freetype-src/builds/windows/ftdebug.c')
-rw-r--r-- | Build/source/libs/freetype2/freetype-src/builds/windows/ftdebug.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/libs/freetype2/freetype-src/builds/windows/ftdebug.c b/Build/source/libs/freetype2/freetype-src/builds/windows/ftdebug.c index 94c22da7525..a65f5446941 100644 --- a/Build/source/libs/freetype2/freetype-src/builds/windows/ftdebug.c +++ b/Build/source/libs/freetype2/freetype-src/builds/windows/ftdebug.c @@ -4,7 +4,7 @@ * * Debugging and logging component for Win32 (body). * - * Copyright (C) 1996-2021 by + * Copyright (C) 1996-2022 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * This file is part of the FreeType project, and may only be used, @@ -136,6 +136,8 @@ va_start( ap, fmt ); vfprintf( stderr, fmt, ap ); +#if ( defined( _WIN32_WINNT ) && _WIN32_WINNT >= 0x0400 ) || \ + ( defined( _WIN32_WCE ) && _WIN32_WCE >= 0x0600 ) if ( IsDebuggerPresent() ) { static char buf[1024]; @@ -144,6 +146,7 @@ vsnprintf( buf, sizeof buf, fmt, ap ); OutputDebugStringA( buf ); } +#endif va_end( ap ); } @@ -159,6 +162,8 @@ va_start( ap, fmt ); vfprintf( stderr, fmt, ap ); +#if ( defined( _WIN32_WINNT ) && _WIN32_WINNT >= 0x0400 ) || \ + ( defined( _WIN32_WCE ) && _WIN32_WCE >= 0x0600 ) if ( IsDebuggerPresent() ) { static char buf[1024]; @@ -167,6 +172,7 @@ vsnprintf( buf, sizeof buf, fmt, ap ); OutputDebugStringA( buf ); } +#endif va_end( ap ); exit( EXIT_FAILURE ); |