Missing header wrappers.

* include/freetype/config/integer-types.h, src/smooth/ftgrays.h:
Add missing FT_BEGIN_HEADER and FT_END_HEADER.
* src/smooth/ftgrays.c: Cosmetics.
This commit is contained in:
Graham Asher 2025-04-04 19:54:50 -04:00 committed by Alexei Podtelezhnikov
parent 82090e67c2
commit fc67794e15
3 changed files with 7 additions and 11 deletions

View File

@ -17,6 +17,8 @@
#ifndef FREETYPE_CONFIG_INTEGER_TYPES_H_
#define FREETYPE_CONFIG_INTEGER_TYPES_H_
FT_BEGIN_HEADER
/* There are systems (like the Texas Instruments 'C54x) where a `char` */
/* has 16~bits. ANSI~C says that `sizeof(char)` is always~1. Since an */
/* `int` has 16~bits also for this system, `sizeof(int)` gives~1 which */
@ -246,5 +248,6 @@
typedef FT_UINT64 FT_UInt64;
#endif
FT_END_HEADER
#endif /* FREETYPE_CONFIG_INTEGER_TYPES_H_ */

View File

@ -170,8 +170,8 @@ typedef ptrdiff_t FT_PtrDist;
#define Smooth_Err_Invalid_Argument -3
#define Smooth_Err_Raster_Overflow -4
#define FT_BEGIN_HEADER
#define FT_END_HEADER
#define FT_BEGIN_HEADER /* nothing */
#define FT_END_HEADER /* nothing */
#include "ftimage.h"
#include "ftgrays.h"

View File

@ -19,11 +19,6 @@
#ifndef FTGRAYS_H_
#define FTGRAYS_H_
#ifdef __cplusplus
extern "C" {
#endif
#ifdef STANDALONE_
#include "ftimage.h"
#else
@ -31,6 +26,7 @@
#include <freetype/ftimage.h>
#endif
FT_BEGIN_HEADER
/**************************************************************************
*
@ -46,10 +42,7 @@
FT_EXPORT_VAR( const FT_Raster_Funcs ) ft_grays_raster;
#ifdef __cplusplus
}
#endif
FT_END_HEADER
#endif /* FTGRAYS_H_ */