Define of snprintf for Visual Studio 2013
Hello, this is the expansion of #619 (closed):
Issue:
- File
runtest.c
: Execute#include "config.h"
. However, the config.h file does not havedefine SYSCONFDIR
. - The
runsuite.c
,runxmlconf.c
,testapi.c
andtestrecurse.c
files now encounter the errorerror LNK2019: unresolved external symbol snprintf referenced
when compiled on VS2013.
All of the above errors are caused by missing/incorrect include file.
Solution:
- File
runtest.c
: Replace#include "config.h"
with#include "libxml.h"
. - The
runsuite.c
,runxmlconf.c
,testapi.c
andtestrecurse.c
files: Add#include "libxml.h"
above#include <stdio.h>
.
Sorry, I don't have the right to merge and fork so I'll create a issue here.
Edited by Tần Quảng