summaryrefslogtreecommitdiff
path: root/media-libs/freetype/files/freetype-2.10.3-sizeof-types.patch
blob: ea02a15df1153ede0e72fc02913e8b60ad9d5829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 56e6ee69d298c0d150e2b76d2cfa2306e901df40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Sun, 11 Oct 2020 08:59:08 +0200
Subject: [PATCH] Prevent apps from using the autoconf sizeof branch.

Use #error to make sure that any app trying to enable that branch fails
miserably. This guarantees the code to be multilib-friendly and also
removes the header differences triggering QA errors.
---
 builds/unix/ftconfig.h.in | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/builds/unix/ftconfig.h.in b/builds/unix/ftconfig.h.in
index 00b5a8226..020593a95 100644
--- a/builds/unix/ftconfig.h.in
+++ b/builds/unix/ftconfig.h.in
@@ -45,10 +45,7 @@
 #undef FT_USE_AUTOCONF_SIZEOF_TYPES
 #ifdef FT_USE_AUTOCONF_SIZEOF_TYPES
 
-#undef SIZEOF_INT
-#undef SIZEOF_LONG
-#define FT_SIZEOF_INT  SIZEOF_INT
-#define FT_SIZEOF_LONG SIZEOF_LONG
+#error "Unsupported code branch enabled. Please report a bug to bugs.gentoo.org."
 
 #endif /* FT_USE_AUTOCONF_SIZEOF_TYPES */
 
-- 
2.28.0