diff options
| author | Krasimir Angelov <kr.angelov@gmail.com> | 2017-12-09 23:11:04 +0100 |
|---|---|---|
| committer | Krasimir Angelov <kr.angelov@gmail.com> | 2017-12-09 23:11:04 +0100 |
| commit | fa8530add196b1481dcd143f183889107e0b4948 (patch) | |
| tree | d15a3f6b8602307cadb968df0af1fe9c96313d90 /src | |
| parent | 4a1d19086a47455a6d14f7ef6af3dc8b77d82cbe (diff) | |
silence some warnings on MINGW32
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/c/gu/defs.h | 10 | ||||
| -rw-r--r-- | src/runtime/c/pgf/pgf.h | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/runtime/c/gu/defs.h b/src/runtime/c/gu/defs.h index 6b531979c..f5472a414 100644 --- a/src/runtime/c/gu/defs.h +++ b/src/runtime/c/gu/defs.h @@ -23,6 +23,14 @@ #define restrict __restrict +#elif defined(__MINGW32__) + +#define GU_API_DECL +#define GU_API + +#define GU_INTERNAL_DECL +#define GU_INTERNAL + #else #define GU_API_DECL @@ -30,7 +38,9 @@ #define GU_INTERNAL_DECL __attribute__ ((visibility ("hidden"))) #define GU_INTERNAL __attribute__ ((visibility ("hidden"))) + #endif + // end MSVC workaround #include <stddef.h> diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h index d4cc63097..6dd040b49 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -19,6 +19,14 @@ #define PGF_INTERNAL_DECL #define PGF_INTERNAL +#elif defined(__MINGW32__) + +#define PGF_API_DECL +#define PGF_API + +#define PGF_INTERNAL_DECL +#define PGF_INTERNAL + #else #define PGF_API_DECL |
