Current libwpg code produces an error about a macro being run conditionally, when configured in Windows. The same error was fixed in libwpd code some time ago, and needs to be done in libwpg.
The fix is in configure.ac: as in the configure.ac file in libwpd, these two lines need to be moved two lines down, so that they are outside the closing parenthesis (=curved bracket). They should be moved below line 153 in current code:
AM_CONDITIONAL([HAVE_VISIBILITY], [
test x"$have_visibility" = xyes && test x"$ax_cv_have_func_attribute_visibility" = xyes])
Thank, I just commit 29244c855c26f6a7e699ffe8fa313b026a57c6d4 to correct this problem