File tree Expand file tree Collapse file tree 2 files changed +26
-30
lines changed
Expand file tree Collapse file tree 2 files changed +26
-30
lines changed Original file line number Diff line number Diff line change 1- #if defined __has_include && ! __has_include (< ft2build .h > )
2-
3- #error "FreeType version 2.3 or higher is required. \
4- You may set the MPLLOCALFREETYPE environment variable to 1 to let \
5- Matplotlib download it."
6-
7- #else
8-
9- #include <ft2build.h>
10- #include FT_FREETYPE_H
11-
12- #define XSTR (x ) STR(x)
13- #define STR (x ) #x
14-
15- #pragma message("Compiling with FreeType version " \
16- XSTR(FREETYPE_MAJOR) "." XSTR(FREETYPE_MINOR) "." XSTR(FREETYPE_PATCH) ".")
17- #if FREETYPE_MAJOR << 16 + FREETYPE_MINOR << 8 + FREETYPE_PATCH < 0x020300
1+ #ifdef __has_include
2+ #if !__has_include (< ft2build .h > )
183 #error "FreeType version 2.3 or higher is required. \
19- You may set the MPLLOCALFREETYPE environment variable to 1 to let \
20- Matplotlib download it."
4+ You may set the MPLLOCALFREETYPE environment variable to 1 to let Matplotlib \
5+ download it."
216 #endif
7+ #endif
8+
9+ #include <ft2build.h>
10+ #include FT_FREETYPE_H
2211
12+ #define XSTR (x ) STR(x)
13+ #define STR (x ) #x
14+
15+ #pragma message("Compiling with FreeType version " \
16+ XSTR(FREETYPE_MAJOR) "." XSTR(FREETYPE_MINOR) "." XSTR(FREETYPE_PATCH) ".")
17+ #if FREETYPE_MAJOR << 16 + FREETYPE_MINOR << 8 + FREETYPE_PATCH < 0x020300
18+ #error "FreeType version 2.3 or higher is required. \
19+ You may set the MPLLOCALFREETYPE environment variable to 1 to let Matplotlib \
20+ download it."
2321#endif
Original file line number Diff line number Diff line change 1- #if defined __has_include && ! __has_include ( < png . h > )
2-
3- #error "libpng version 1.2 or higher is required. \
1+ #ifdef __has_include
2+ #if ! __has_include ( < png . h > )
3+ #error "libpng version 1.2 or higher is required. \
44Consider installing it with e.g. 'conda install libpng', \
55'apt install libpng12-dev', 'dnf install libpng-devel', or \
66'brew install libpng'."
7+ #endif
8+ #endif
79
8- #else
9-
10- #include <png.h>
11- #pragma message("Compiling with libpng version " PNG_LIBPNG_VER_STRING ".")
12- #if PNG_LIBPNG_VER < 10200
13- #error "libpng version 1.2 or higher is required. \
10+ #include <png.h>
11+ #pragma message("Compiling with libpng version " PNG_LIBPNG_VER_STRING ".")
12+ #if PNG_LIBPNG_VER < 10200
13+ #error "libpng version 1.2 or higher is required. \
1414Consider installing it with e.g. 'conda install libpng', \
1515'apt install libpng12-dev', 'dnf install libpng-devel', or \
1616'brew install libpng'."
17- #endif
18-
1917#endif
You can’t perform that action at this time.
0 commit comments