blob: 11cc831891e9d1dd3c6938f6632c549703a12438 (
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
|
--- slibc-0.9.2/src/gnu_vfscanf_s.c.orig 2012-11-10 15:37:49.760311665 +0100
+++ slibc-0.9.2/src/gnu_vfscanf_s.c 2012-11-10 15:37:35.436978932 +0100
@@ -17,6 +17,10 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+/* defines needed by libc-lock.h, but removed in glibc 2.16 */
+# define PTFAVAIL(NAME) (NAME != NULL)
+# define __libc_ptf_call_always(FUNC, ARGS) FUNC ARGS
+
#include <assert.h>
#include <errno.h>
#include <limits.h>
@@ -28,7 +32,13 @@
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <bits/libc-lock.h>
+#ifdef __cplusplus
+}
+#endif
#include <locale.h>
#include <stddef.h>
#include "slibc.h"
|