diff options
| author | hallgren <hallgren@chalmers.se> | 2014-03-06 13:42:27 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2014-03-06 13:42:27 +0000 |
| commit | 052ead6797a4767f12f284e37c298cad4077aa66 (patch) | |
| tree | bd41af423526a97d6953190d690d7d280b477381 /src/runtime/c | |
| parent | e916c77cb4eaf5e8a9188ab2963f09cabbdebf92 (diff) | |
C run-time: protect from Windows specific #includes with #ifdef __MINGW32__
Diffstat (limited to 'src/runtime/c')
| -rw-r--r-- | src/runtime/c/gu/seq.c | 2 | ||||
| -rw-r--r-- | src/runtime/c/gu/string.c | 2 | ||||
| -rw-r--r-- | src/runtime/c/pgf/reader.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/c/gu/seq.c b/src/runtime/c/gu/seq.c index 54c92f4de..2c3d6c3e3 100644 --- a/src/runtime/c/gu/seq.c +++ b/src/runtime/c/gu/seq.c @@ -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; diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c index 9a1677745..969ac709a 100644 --- a/src/runtime/c/gu/string.c +++ b/src/runtime/c/gu/string.c @@ -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; diff --git a/src/runtime/c/pgf/reader.c b/src/runtime/c/pgf/reader.c index 8163f16ed..7b8ea91bc 100644 --- a/src/runtime/c/pgf/reader.c +++ b/src/runtime/c/pgf/reader.c @@ -14,7 +14,9 @@ #include <gu/utf8.h> #include <math.h> #include <stdlib.h> +#ifdef __MINGW32__ #include <malloc.h> +#endif // // PgfReader |
