mirror of
https://github.com/partic2/libffi
synced 2026-11-11 02:27:19 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user