diff options
author | OBATA Akio <[email protected]> | 2020-08-16 19:05:05 +0900 |
---|---|---|
committer | TDE Gitea <[email protected]> | 2020-08-17 14:21:12 +0000 |
commit | f65c9e6665bf5bed20710e6a278d4fa83a6b32a8 (patch) | |
tree | f69446a853e1b71e484684da8113020f6578646e /config.h.cmake | |
parent | 76a04f5fce7c958be414ce0ede6afe14c66a5584 (diff) | |
download | tdelibs-f65c9e6665bf5bed20710e6a278d4fa83a6b32a8.tar.gz tdelibs-f65c9e6665bf5bed20710e6a278d4fa83a6b32a8.zip |
Fix to declare missing `snprintf` prototype at correct place
Signed-off-by: OBATA Akio <[email protected]>
Diffstat (limited to 'config.h.cmake')
-rw-r--r-- | config.h.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config.h.cmake b/config.h.cmake index fe14d99ea..049450d34 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1155,7 +1155,7 @@ __END_DECLS -#if !defined(HAVE_VSNPRINTF_PROTO) +#if !defined(HAVE_VSNPRINTF_PROTO) || !defined(HAVE_SNPRINTF_PROTO) #if __STDC__ #include <stdarg.h> #include <stdlib.h> @@ -1165,11 +1165,15 @@ __END_DECLS #ifdef __cplusplus extern "C" #endif +#if !defined(HAVE_VSNPRINTF_PROTO) int vsnprintf(char *str, size_t n, char const *fmt, va_list ap); +#endif +#if !defined(HAVE_SNPRINTF_PROTO) +int snprintf(char *str, size_t n, char const *fmt, ...); +#endif #ifdef __cplusplus extern "C" #endif -int snprintf(char *str, size_t n, char const *fmt, ...); #endif |