Fix cross-compiling for mingw64

This commit is contained in:
Trevor Bentley
2017-11-16 16:14:02 +01:00
parent 40d5b7cbab
commit 6a34b6ef96
3 changed files with 17 additions and 1 deletions
+4
View File
@@ -42,6 +42,10 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpointer-sign"
#ifdef __MINGW32__
#define dprintf(fd, ...) fprintf(stdout, __VA_ARGS__)
#endif
void dump_hex(const unsigned char *buf, unsigned int len, FILE *output, int space) {
unsigned int i;
for (i = 0; i < len; i++) {