From a056f660b41815752ccb53f2182f24de721393aa Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 7 May 2022 06:06:35 +0000 Subject: freetype 2.12.1 (trial) git-svn-id: svn://tug.org/texlive/trunk@63245 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/libs/freetype2/freetype-src/builds/windows/ftdebug.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Build/source/libs/freetype2/freetype-src/builds/windows/ftdebug.c') 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 ); -- cgit v1.2.3