diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-02-11 17:44:37 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-02-11 17:45:11 +0100 |
commit | 237819afda29accc5e1e98ba3fbed6fee29d5ca9 (patch) | |
tree | 9f5090a80a5915a43a177ce1a0aea9ab26dbc510 | |
parent | ed5853db0383db0903448012957b928795f72f6d (diff) | |
download | cmocka-237819afda29accc5e1e98ba3fbed6fee29d5ca9.tar.gz cmocka-237819afda29accc5e1e98ba3fbed6fee29d5ca9.tar.xz cmocka-237819afda29accc5e1e98ba3fbed6fee29d5ca9.zip |
config: Add missing define for (v)snprintf functions.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | config.h.cmake | 18 | ||||
-rw-r--r-- | include/cmocka_private.h | 2 |
2 files changed, 20 insertions, 0 deletions
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 <windows.h> |