mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-05 19:27:07 +00: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