Permalink
Browse files

Fix buildbreak on WIN32

link problem with unresolved symbol for snprintf

Change-Id: If14ca153ff1bbf0e3141f5e4caa6d3d148bfff37
Reviewed-on: http://review.couchbase.org/33902
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
  • Loading branch information...
1 parent 6143ee3 commit eabb282928c161269f31a08b339be5caf8649e0d @trondn trondn committed Feb 25, 2014
Showing with 2 additions and 4 deletions.
  1. +1 −0 config_static.h
  2. +0 −4 src/dbinfo.c
  3. +1 −0 src/views/view_group.c
View
@@ -71,6 +71,7 @@
"The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup."
*/
#pragma warning(disable: 4996)
+#define snprintf _snprintf
#endif
#endif
View
@@ -11,10 +11,6 @@
#include "util.h"
#include "bitfield.h"
-#ifdef WIN32
-#define snprintf _snprintf
-#endif
-
static char *size_str(double size)
{
static char rfs[256];
View
@@ -18,6 +18,7 @@
* the License.
**/
+#include "config.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>

0 comments on commit eabb282

Please sign in to comment.