Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/include allow overriding snprintf/vsnprintf
details: https://anonhg.NetBSD.org/src/rev/889c9ceda959
branches: trunk
changeset: 350535:889c9ceda959
user: christos <christos%NetBSD.org@localhost>
date: Fri Jan 13 14:41:27 2017 +0000
description:
allow overriding snprintf/vsnprintf
diffstat:
lib/libc/include/namespace.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b880be8dd8ab -r 889c9ceda959 lib/libc/include/namespace.h
--- a/lib/libc/include/namespace.h Fri Jan 13 14:34:58 2017 +0000
+++ b/lib/libc/include/namespace.h Fri Jan 13 14:41:27 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.184 2017/01/12 18:16:52 christos Exp $ */
+/* $NetBSD: namespace.h,v 1.185 2017/01/13 14:41:27 christos Exp $ */
/*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -626,7 +626,7 @@
#define sl_free _sl_free
#define sl_init _sl_init
#define sleep _sleep
-#if __SSP_FORTIFY_LEVEL == 0
+#if __SSP_FORTIFY_LEVEL == 0 && !defined(snprintf)
#define snprintf _snprintf
#endif
#define snprintf_l _snprintf_l
@@ -736,7 +736,7 @@
#define vasprintf _vasprintf
#define vasprintf_l _vasprintf_l
#define vdprintf _vdprintf
-#if __SSP_FORTIFY_LEVEL == 0
+#if __SSP_FORTIFY_LEVEL == 0 && !defined(vsnprintf)
#define vsnprintf _vsnprintf
#endif
#define vdprintf_l _vdprintf_l
Home |
Main Index |
Thread Index |
Old Index