From 237819afda29accc5e1e98ba3fbed6fee29d5ca9 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 11 Feb 2015 17:44:37 +0100 Subject: [PATCH] config: Add missing define for (v)snprintf functions. Signed-off-by: Andreas Schneider --- config.h.cmake | 18 ++++++++++++++++++ include/cmocka_private.h | 2 ++ 2 files changed, 20 insertions(+) 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 -- 2.7.4