* builds/windows/ftdebug.c: Synchronize with src/base/ftdebug.c.

This commit is contained in:
Werner Lemberg 2021-01-31 17:17:40 +01:00
parent 324612ceb2
commit 4554c6da42
2 changed files with 36 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2021-01-31 Werner Lemberg <wl@gnu.org>
* builds/windows/ftdebug.c: Synchronize with `src/base/ftdebug.c`.
2021-01-31 Werner Lemberg <wl@gnu.org>
Always provide logging API.
@ -8,7 +12,6 @@
Problem reported by Alexei.
* src/base/ftdebug.c: Include `ftlogging.h`.
(FT_Trace_Set_Level, FT_Trace_Set_Default_Level, FT_Set_Log_Handler,
FT_Set_Default_Log_Handler) [!FT_DEBUG_LOGGING]: Provide stubs.

View File

@ -42,6 +42,7 @@
#include <freetype/freetype.h>
#include <freetype/ftlogging.h>
#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftobjs.h>
@ -602,7 +603,7 @@
/* documentation is in ftlogging.h */
FT_EXPORT_DEF( void )
FT_Set_Default_Log_Handler()
FT_Set_Default_Log_Handler( void )
{
custom_output_handler = NULL;
}
@ -621,7 +622,36 @@
va_end( ap );
}
#endif /* FT_DEBUG_LOGGING */
#else /* !FT_DEBUG_LOGGING */
FT_EXPORT_DEF( void )
FT_Trace_Set_Level( const char* level )
{
FT_UNUSED( level );
}
FT_EXPORT_DEF( void )
FT_Trace_Set_Default_Level( void )
{
/* nothing */
}
FT_EXPORT_DEF( void )
FT_Set_Log_Handler( FT_Custom_Log_Handler handler )
{
FT_UNUSED( handler );
}
FT_EXPORT_DEF( void )
FT_Set_Default_Log_Handler( void )
{
/* nothing */
}
#endif /* !FT_DEBUG_LOGGING */
/* END */