mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Fix "most" compilation issues MSVC has
test_library is still broken
This commit is contained in:
@ -42,6 +42,14 @@
|
||||
#define ZINT_DEBUG_TEST_BWIPP 128
|
||||
#define ZINT_DEBUG_TEST_PERFORMANCE 256
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <malloc.h>
|
||||
#define alloca(nmemb) _malloca(nmemb)
|
||||
#define popen(command, mode) _popen(command, mode)
|
||||
#define pclose(stream) _pclose(stream)
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include "../common.h"
|
||||
|
||||
|
Reference in New Issue
Block a user