diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-05 09:40:08 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-05 09:40:08 +0000 |
commit | 487a0562859e393e12b91eed17ab893236764763 (patch) | |
tree | be91dc777d06c74a7a5d56ae675e150a5c885975 | |
parent | d5da58df9c75214f2f8166baf0ec99360c69e63f (diff) | |
download | samba-487a0562859e393e12b91eed17ab893236764763.tar.gz samba-487a0562859e393e12b91eed17ab893236764763.tar.bz2 samba-487a0562859e393e12b91eed17ab893236764763.zip |
Use new configure test to turn on this automated test for correct string
function usage.
Andrew Bartlett
(This used to be commit cdc6139a9646b267a9921fc11fa532640a2e4c7f)
-rw-r--r-- | source3/include/safe_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |