Fix appveyor windows build (#420)

* Fix msvcc dll build by adding dllexport decorations to all API declarations

* Fix appveyor build for VS 2013

Use the new -DFFI_BUILDING_DLL for producing a working DLL. Update the
msvcc.sh wrapper script to successfully compile the testsuite files.

* MSVC build: suppress warnings in testsuite

* fix testsuite on appveyor
This commit is contained in:
fwg
2018-04-02 06:55:31 -05:00
committed by Anthony Green
parent 48bdb02867
commit af6773d6ab
8 changed files with 138 additions and 52 deletions
+4 -3
View File
@@ -25,8 +25,6 @@
#include "alignof.h"
#include <stdarg.h>
#include "testcases.c"
/* libffi testsuite local changes -------------------------------- */
#ifdef DGTEST
/* Redefine exit(1) as a test failure */
@@ -34,7 +32,7 @@
int count = 0;
char rbuf1[2048];
char rbuf2[2048];
int fprintf(FILE *stream, const char *format, ...)
int _fprintf(FILE *stream, const char *format, ...)
{
va_list args;
va_start(args, format);
@@ -60,9 +58,12 @@ int fprintf(FILE *stream, const char *format, ...)
return 0;
}
#define fprintf _fprintf
#endif
/* --------------------------------------------------------------- */
#include "testcases.c"
#ifndef ABI_NUM
#define ABI_NUM FFI_DEFAULT_ABI
#endif