mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
Fix "most" compilation issues MSVC has
test_library is still broken
This commit is contained in:
parent
88bbeb862b
commit
2221cb1e83
8 changed files with 29 additions and 23 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue