diff --git a/Windows/math.h b/Windows/math.h index 41d6d8a..2b934f9 100755 --- a/Windows/math.h +++ b/Windows/math.h @@ -1,7 +1,9 @@ #pragma once #include_next +#ifndef __MINGW32__ /* "Old" (Pre-2015) Windows headers/libc don't have round. */ static inline double round(double f) { return f >= 0? (int)(f + 0.5) : (int)(f - 0.5); -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Windows/stdio.h b/Windows/stdio.h index ceba4d1..d68c956 100755 --- a/Windows/stdio.h +++ b/Windows/stdio.h @@ -2,6 +2,7 @@ #include_next #include +#ifndef __MINGW32__ #ifndef __LIBRETRO__ static inline int vasprintf(char **str, const char *fmt, va_list args) { @@ -16,6 +17,7 @@ static inline int vasprintf(char **str, const char *fmt, va_list args) return ret; } #endif +#endif /* This code is public domain -- Will Hartung 4/9/09 */ static inline size_t getline(char **lineptr, size_t *n, FILE *stream) {