mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-24 10:22:50 -06:00
C run-time: protect from Windows specific #includes with #ifdef __MINGW32__
This commit is contained in:
@@ -4,7 +4,9 @@
|
|||||||
#include <gu/str.h>
|
#include <gu/str.h>
|
||||||
#include <gu/assert.h>
|
#include <gu/assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifdef __MINGW32__
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
struct GuSeq {
|
struct GuSeq {
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
#include <gu/utf8.h>
|
#include <gu/utf8.h>
|
||||||
#include <gu/assert.h>
|
#include <gu/assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifdef __MINGW32__
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
struct GuStringBuf {
|
struct GuStringBuf {
|
||||||
GuBuf* buf;
|
GuBuf* buf;
|
||||||
|
|||||||
@@ -14,7 +14,9 @@
|
|||||||
#include <gu/utf8.h>
|
#include <gu/utf8.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#ifdef __MINGW32__
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// PgfReader
|
// PgfReader
|
||||||
|
|||||||
Reference in New Issue
Block a user