From: Andreas Schneider Date: Wed, 11 Feb 2015 16:44:37 +0000 (+0100) Subject: config: Add missing define for (v)snprintf functions. X-Git-Tag: cmocka-1.1.1~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=237819afda29accc5e1e98ba3fbed6fee29d5ca9;p=platform%2Fupstream%2Fcmocka.git config: Add missing define for (v)snprintf functions. Signed-off-by: Andreas Schneider --- diff --git a/config.h.cmake b/config.h.cmake index e657024..1c1c4c1 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -83,6 +83,24 @@ /* Define to 1 if you have the `fprintf' function. */ #cmakedefine HAVE_FPRINTF 1 +/* Define to 1 if you have the `snprintf' function. */ +#cmakedefine HAVE_SNPRINTF 1 + +/* Define to 1 if you have the `_snprintf' function. */ +#cmakedefine HAVE__SNPRINTF 1 + +/* Define to 1 if you have the `_snprintf_s' function. */ +#cmakedefine HAVE__SNPRINTF_S 1 + +/* Define to 1 if you have the `vsnprintf' function. */ +#cmakedefine HAVE_VSNPRINTF 1 + +/* Define to 1 if you have the `_vsnprintf' function. */ +#cmakedefine HAVE__VSNPRINTF 1 + +/* Define to 1 if you have the `_vsnprintf_s' function. */ +#cmakedefine HAVE__VSNPRINTF_S 1 + /* Define to 1 if you have the `free' function. */ #cmakedefine HAVE_FREE 1 diff --git a/include/cmocka_private.h b/include/cmocka_private.h index 4b71dfe..1e40c2c 100644 --- a/include/cmocka_private.h +++ b/include/cmocka_private.h @@ -17,6 +17,8 @@ #ifndef CMOCKA_PRIVATE_H_ #define CMOCKA_PRIVATE_H_ +#include "config.h" + #ifdef _WIN32 #include