File: 0002-Mask-out-rectangle-packing-replacement-in-stb_truety.patch

package info (click to toggle)
libstb 0.0~git20250907.fede005%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,520 kB
  • sloc: ansic: 80,787; cpp: 1,506; makefile: 114; sh: 22
file content (34 lines) | stat: -rw-r--r-- 1,541 bytes parent folder | download | duplicates (2)
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
32
33
34
From 4a304a313082f6a9f80f8ffaac1f2d3c1171993d Mon Sep 17 00:00:00 2001
From: yangfl <yangfl@users.noreply.github.com>
Date: Fri, 12 Feb 2021 18:57:08 +0800
Subject: [PATCH 02/11] Mask out rectangle packing replacement in stb_truetype

---
 stb_rect_pack_truetype.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 stb_rect_pack_truetype.c

diff --git a/stb_rect_pack_truetype.c b/stb_rect_pack_truetype.c
new file mode 100644
index 0000000..1192084
--- /dev/null
+++ b/stb_rect_pack_truetype.c
@@ -0,0 +1,15 @@
+////////////////////////////////////////////////////////////////////////////////////
+//                                                                                //
+//                                                                                //
+// COMPILER WARNING ?!?!?                                                         //
+//                                                                                //
+//                                                                                //
+// if you get a compile warning due to these symbols being defined more than      //
+// once, move #include "stb_rect_pack.h" before #include "stb_truetype.h"         //
+//                                                                                //
+////////////////////////////////////////////////////////////////////////////////////
+
+#define STB_RECT_PACK_IMPLEMENTATION
+#include "stb_rect_pack.h"
+#define STB_TRUETYPE_IMPLEMENTATION
+#include "stb_truetype.h"
-- 
2.47.2