freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] Simplify ftconfig.h


From: David Turner
Subject: [patch] Simplify ftconfig.h
Date: Tue, 23 Jun 2020 21:04:52 +0200

[build] Simplify <freetype/config/ftconfig.h>

This patch simplifies the content of ftconfig.h by
moving things around a little, i.e.:

- Move public compiler macros needed by the FreeType
  API headers to <freetype/config/compiler_macros.h>,
  while all other macros that are only used by the
  implementation are moved to
  <freetype/internal/compiler_macros.h> instead.

- Move integer type definitions to
  <freetype/config/integer_types.h> while allowing
  the header's includer to define FT_SIZEOF_INT and
  FT_SIZEOF_LONG (as required on Unix).

- Move Mac support macro definitions to
  <freetype/config/mac_support.h>. It is unclear
  at this point if this is required by the public
  API header. Otherwise, this might be moved to
  <freetype/internal/mac_support.h> instead.

- Rename builds/unix/ftconfig.in to
  builds/unix/ftconfig.h.in since we are no longer
  limited to 8.3 file names (yeah!). Also make
  the file's content drastically shorter since
  it can now include the other config/ headers
  listed above.

NOTE: This patch does not try to move the definitions
of HAVE_UNISTD_H and HAVE_FCNTL_H from the public
ftconfig.h header generated by `configure` on Unix.
However, these values have no place in a public
header, and should probably be moved to compiler
flags instead. Maybe in a future patch.

Attachment: 0001-build-Simplify-freetype-config-ftconfig.h.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]