diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 20:12:41 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 20:14:04 +0100 |
commit | 4ae9e6ca82fda9fb0804a3d110baaddcdaedfb4b (patch) | |
tree | 2f3843233d58897b2daeda09b330556caa9ddb71 | |
parent | 6ca808b5f4a60b1f65b816ff8b9401fd7b2ec1bd (diff) |
fix alloca on win32
-rw-r--r-- | compat/alloca.hpp | 1 | ||||
-rw-r--r-- | loader/texture.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compat/alloca.hpp b/compat/alloca.hpp index 1ce269e5..97969a55 100644 --- a/compat/alloca.hpp +++ b/compat/alloca.hpp @@ -2,6 +2,7 @@ #ifdef _WIN32 # include <malloc.h> +# define alloca _alloca #else # include <alloca.h> #endif diff --git a/loader/texture.cpp b/loader/texture.cpp index c142cf69..27998f84 100644 --- a/loader/texture.cpp +++ b/loader/texture.cpp @@ -1,5 +1,6 @@ #include "impl.hpp" #include "compat/assert.hpp" +#include "compat/alloca.hpp" #include <cstring> #include <Corrade/Utility/Path.h> #include <Magnum/Trade/ImageData.h> |