From 487a0562859e393e12b91eed17ab893236764763 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 5 Mar 2003 09:40:08 +0000 Subject: Use new configure test to turn on this automated test for correct string function usage. Andrew Bartlett (This used to be commit cdc6139a9646b267a9921fc11fa532640a2e4c7f) --- source3/include/safe_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/include/safe_string.h b/source3/include/safe_string.h index 431dc400aa..6c2bd82bb9 100644 --- a/source3/include/safe_string.h +++ b/source3/include/safe_string.h @@ -50,7 +50,7 @@ char * __unsafe_string_function_usage_here__(void); -#if 0 && defined __GNUC__ && __GNUC__ >= 2 && defined __OPTIMIZE__ +#ifdef HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS #define pstrcpy(d,s) ((sizeof(d) != sizeof(pstring) && sizeof(d) != sizeof(char *)) ? __unsafe_string_function_usage_here__() : safe_strcpy((d), (s),sizeof(pstring)-1)) #define pstrcat(d,s) ((sizeof(d) != sizeof(pstring) && sizeof(d) != sizeof(char *)) ? __unsafe_string_function_usage_here__() : safe_strcat((d), (s),sizeof(pstring)-1)) -- cgit