comparison extern/jansson/cmake/jansson_private_config.h.cmake @ 122:2aecbd638b1c

Irccd: add an upstream patch to fix jansson on VS, #425
author David Demelier <markand@malikania.fr>
date Wed, 04 May 2016 13:38:02 +0200
parents 1158cffe5a5e
children
comparison
equal deleted inserted replaced
121:12d8f2d20c77 122:2aecbd638b1c
47 # define ssize_t @JSON_SSIZE@ 47 # define ssize_t @JSON_SSIZE@
48 #endif 48 #endif
49 49
50 #cmakedefine HAVE_SNPRINTF 1 50 #cmakedefine HAVE_SNPRINTF 1
51 51
52 /* snprintf should not be defined as macro with MSC_VER >= 1900 */
53 #if defined(_WIN32) || defined(WIN32)
54 # if defined(_MSC_VER) /* MS compiller */
55 # if (_MSC_VER < 1900) /* snprintf not introduced */
56 # if !defined(snprintf)
57 # define snprintf _snprintf
58 # define HAVE_SNPRINTF 1 /* snprintf defined manually */
59 # endif
60 # else
61 # define HAVE_SNPRINTF 1 /* snprintf available via sdk */
62 # endif
63 # endif
64 #endif
65
52 #ifndef HAVE_SNPRINTF 66 #ifndef HAVE_SNPRINTF
53 # define snprintf @JSON_SNPRINTF@ 67 # define snprintf @JSON_SNPRINTF@
54 #endif 68 #endif
55 69
56 #cmakedefine HAVE_VSNPRINTF 70 #cmakedefine HAVE_VSNPRINTF