File: system-stb.diff

package info (click to toggle)
freespace2 24.2.0%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 43,716 kB
  • sloc: cpp: 595,001; ansic: 21,741; python: 1,174; sh: 457; makefile: 248; xml: 181
file content (25 lines) | stat: -rw-r--r-- 730 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
Description: Fix include statement to builds against system libstb
Forwarded: not-needed
--- a/code/graphics/paths/nanovg/fontstash.h
+++ b/code/graphics/paths/nanovg/fontstash.h
@@ -243,7 +243,7 @@
 static void fons__tmpfree(void* ptr, void* up);
 #define STBTT_malloc(x,u)    fons__tmpalloc(x,u)
 #define STBTT_free(x,u)      fons__tmpfree(x,u)
-#include "stb_truetype.h"
+#include <stb/stb_truetype.h>
 
 #include <stdlib.h>
 
--- a/code/graphics/paths/nanovg/nanovg.c
+++ b/code/graphics/paths/nanovg/nanovg.c
@@ -23,7 +23,7 @@
 #include "fontstash.h"
 
 #define STB_IMAGE_IMPLEMENTATION
-#include "stb_image.h"
+#include <stb/stb_image.h>
 
 #ifdef _MSC_VER
 #pragma warning(disable: 4100)  // unreferenced formal parameter