Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include/ssp Create the stpncpy() inline only when GCC>=4.8 |...
details: https://anonhg.NetBSD.org/src/rev/543848b4d967
branches: trunk
changeset: 334657:543848b4d967
user: pooka <pooka%NetBSD.org@localhost>
date: Sat Nov 29 13:23:48 2014 +0000
description:
Create the stpncpy() inline only when GCC>=4.8 || clang
Mirrors the stpncpy() wrapper macro and avoids the following:
warning: implicit declaration of function ?__builtin___stpncpy_chk?
diffstat:
include/ssp/string.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 111de906c593 -r 543848b4d967 include/ssp/string.h
--- a/include/ssp/string.h Sat Nov 29 08:15:07 2014 +0000
+++ b/include/ssp/string.h Sat Nov 29 13:23:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: string.h,v 1.12 2014/04/25 18:37:38 pooka Exp $ */
+/* $NetBSD: string.h,v 1.13 2014/11/29 13:23:48 pooka Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -83,7 +83,9 @@
__ssp_bos_icheck3(memmove, void *, const void *)
__ssp_bos_icheck3(memset, void *, int)
__ssp_bos_icheck2_restrict(stpcpy, char *, const char *)
+#if __GNUC_PREREQ__(4,8) || defined(__clang__)
__ssp_bos_icheck3_restrict(stpncpy, char *, const char *)
+#endif
__ssp_bos_icheck2_restrict(strcpy, char *, const char *)
__ssp_bos_icheck2_restrict(strcat, char *, const char *)
__ssp_bos_icheck3_restrict(strncpy, char *, const char *)
Home |
Main Index |
Thread Index |
Old Index