File: 02-vsnwprintf.patch

package info (click to toggle)
libtcod 1.7.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,844 kB
  • sloc: ansic: 23,322; cpp: 20,694; python: 4,410; makefile: 182; sh: 67
file content (24 lines) | stat: -rw-r--r-- 883 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fix undefined reference to vsnwprintf function
Author: Fabian Wolff <fabi.wolff@arcor.de>
Bug: https://bitbucket.org/libtcod/libtcod/issues/126/libtcod-build-fails-on-powerpc-platforms
Bug-Debian: https://bugs.debian.org/901859
Forwarded: https://bitbucket.org/libtcod/libtcod/issues/126/libtcod-build-fails-on-powerpc-platforms
Last-Update: 2018-07-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/include/libtcod_portability.h
+++ b/include/libtcod_portability.h
@@ -161,12 +161,8 @@
 #if defined(TCOD_WINDOWS)
 char *strcasestr (const char *haystack, const char *needle);
 #endif
-#if defined(TCOD_LINUX) || defined(TCOD_HAIKU) || defined(TCOD_FREEBSD) || defined(TCOD_MACOSX)
+
 #define vsnwprintf vswprintf
-#endif
-#ifdef TCOD_WINDOWS
-#define vsnwprintf _vsnwprintf
-#endif
 
 /* cross platform deprecation */
 #if defined(_MSC_VER)