C run-time: protect from Windows specific #includes with #ifdef __MINGW32__

This commit is contained in:
hallgren
2014-03-06 13:42:27 +00:00
parent abc6d5c58b
commit 8d9821a977
3 changed files with 6 additions and 0 deletions

View File

@@ -4,7 +4,9 @@
#include <gu/str.h>
#include <gu/assert.h>
#include <stdlib.h>
#ifdef __MINGW32__
#include <malloc.h>
#endif
struct GuSeq {
size_t len;

View File

@@ -6,7 +6,9 @@
#include <gu/utf8.h>
#include <gu/assert.h>
#include <stdlib.h>
#ifdef __MINGW32__
#include <malloc.h>
#endif
struct GuStringBuf {
GuBuf* buf;

View File

@@ -14,7 +14,9 @@
#include <gu/utf8.h>
#include <math.h>
#include <stdlib.h>
#ifdef __MINGW32__
#include <malloc.h>
#endif
//
// PgfReader