Commit 72541327 authored by Adam P. Goucher's avatar Adam P. Goucher

MinGW compatibility

parent 022e1d1a
Pipeline #46824614 passed with stages
in 7 minutes and 35 seconds
......@@ -17,6 +17,12 @@
#include <cstdlib>
#include <cerrno>
#define posix_memalign(p, a, s) (((*(p)) = std::malloc((s))), *(p) ? 0 : errno)
#else
#ifdef _WIN32
#include <cstdlib>
#include <cerrno>
#define posix_memalign(p, a, s) (((*(p)) = std::malloc((s))), *(p) ? 0 : errno)
#endif
#endif
namespace apg {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment