summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2020-06-08 13:31:55 +0200
committerWerner Lemberg <wl@gnu.org>2020-06-08 13:31:55 +0200
commite13391333f501967db8823025ce8c63259b5d57e (patch)
tree64cddc61043a9db91168f734bdba8211357168ce /docs
parent9e6e903cc4f6f2de86356d551e74eace75927c31 (diff)
downloadfreetype2-e13391333f501967db8823025ce8c63259b5d57e.tar.gz
Make macros for header file names optional.
We no longer have to take care of the 8.3 file name limit; this allows us (a) to introduce longer, meaningful file names, and (b) to avoid macro names in `#include' lines altogether since some compilers (most notably Visual C++) doesn't support this properly. */*: Replace #include FOO_H with #include <freetype/foo.h> or something similar. Also update the documentation.
Diffstat (limited to 'docs')
-rw-r--r--docs/INSTALL.ANY10
-rw-r--r--docs/VERSIONS.TXT4
2 files changed, 8 insertions, 6 deletions
diff --git a/docs/INSTALL.ANY b/docs/INSTALL.ANY
index 58cc22b82..31d63b399 100644
--- a/docs/INSTALL.ANY
+++ b/docs/INSTALL.ANY
@@ -8,13 +8,15 @@ specific environments.
I. Standard procedure
---------------------
- * DISABLE PRE-COMPILED HEADERS! This is very important for Visual
- C++, because FreeType uses lines like:
+ * If you use macro names for FreeType header files (while mandatory
+ in earlier versions, this is now optional since FreeType version
+ 2.11) it is necessary to disable pre-compiled headers. This is
+ very important for Visual C++, because lines like
#include FT_FREETYPE_H
- which are not correctly supported by this compiler while being ISO
- C compliant!
+ are not correctly supported by this compiler while being ISO C
+ compliant!
* You need to add the directory `include' to your include path when
compiling the library.
diff --git a/docs/VERSIONS.TXT b/docs/VERSIONS.TXT
index 1cb5982c4..b647fb7bc 100644
--- a/docs/VERSIONS.TXT
+++ b/docs/VERSIONS.TXT
@@ -38,7 +38,7 @@ The libtool-specific number does not equal the release number but is
tied to it.
The release number is available at *compile* time through the
-following macros defined in FT_FREETYPE_H:
+following macros defined in `freetype.h':
- FREETYPE_MAJOR: major release number
- FREETYPE_MINOR: minor release number
@@ -99,7 +99,7 @@ other release numbers.
AC_TRY_CPP([
#include <ft2build.h>
-#include FT_FREETYPE_H
+#include <freetype/freetype.h>
#if FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100 + FREETYPE_PATCH < 21002
# error FreeType version too low.