diff options
author | OBATA Akio <obache@wizdas.com> | 2020-08-16 19:05:05 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-08-17 23:21:58 +0900 |
commit | 98a3fd49da14d603aedd2595704085e404bb681a (patch) | |
tree | b843f3c27430c36a405145a22f21c0710a4da797 /config.h.cmake | |
parent | 295b8c54ac2bf77d09aa6bf48aafd1dbaaaef4a8 (diff) | |
download | tdelibs-98a3fd49da14d603aedd2595704085e404bb681a.tar.gz tdelibs-98a3fd49da14d603aedd2595704085e404bb681a.zip |
Fix to declare missing `snprintf` prototype at correct place
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit f65c9e6665bf5bed20710e6a278d4fa83a6b32a8)
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 4c095931d..2797b935f 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1146,7 +1146,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> @@ -1156,11 +1156,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 |