config: Add missing define for (v)snprintf functions.
authorAndreas Schneider <asn@cryptomilk.org>
Wed, 11 Feb 2015 16:44:37 +0000 (17:44 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 11 Feb 2015 16:45:11 +0000 (17:45 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
config.h.cmake
include/cmocka_private.h

index e657024..1c1c4c1 100644 (file)
 /* 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
 
index 4b71dfe..1e40c2c 100644 (file)
@@ -17,6 +17,8 @@
 #ifndef CMOCKA_PRIVATE_H_
 #define CMOCKA_PRIVATE_H_
 
+#include "config.h"
+
 #ifdef _WIN32
 #include <windows.h>