1 #ifdef __has_include
2   #if !__has_include(<ft2build.h>)
3     #error "FreeType version 2.3 or higher is required. \
4 You may unset the system_freetype entry in setup.cfg to let Matplotlib download it."
5   #endif
6 #endif
7 
8 #include <ft2build.h>
9 #include FT_FREETYPE_H
10 
11 #define XSTR(x) STR(x)
12 #define STR(x) #x
13 
14 #pragma message("Compiling with FreeType version " \
15   XSTR(FREETYPE_MAJOR) "." XSTR(FREETYPE_MINOR) "." XSTR(FREETYPE_PATCH) ".")
16 #if FREETYPE_MAJOR << 16 + FREETYPE_MINOR << 8 + FREETYPE_PATCH < 0x020300
17   #error "FreeType version 2.3 or higher is required. \
18 You may unset the system_freetype entry in setup.cfg to let Matplotlib download it."
19 #endif
20