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(&qu
8000
ot;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 > )
18
3
#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."
21
6
#endif
7
+ #endif
8
+
9
+ #include <ft2build.h>
10
+ #include FT_FREETYPE_H
22
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
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."
23
21
#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. \
4
4
Consider installing it with e.g. 'conda install libpng', \
5
5
'apt install libpng12-dev', 'dnf install libpng-devel', or \
6
6
'brew install libpng'."
7
+ #endif
8
+ #endif
7
9
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. \
14
14
Consider installing it with e.g. 'conda install libpng', \
15
15
'apt install libpng12-dev', 'dnf install libpng-devel', or \
16
16
'brew install libpng'."
17
- #endif
18
-
19
17
#endif
You can’t perform that action at this time.
0 commit comments