diff options
| author | David Pinedo <david@lunarg.com> | 2015-07-02 09:04:37 -0600 |
|---|---|---|
| committer | David Pinedo <david@lunarg.com> | 2015-07-02 09:04:37 -0600 |
| commit | ad37c29898bea8f9fcae80b9771de7022cfb7fb3 (patch) | |
| tree | 896e03539ebf473f999ab1d245f3967d5c48a34c | |
| parent | 0a35dcdff977a6665e1ea0d38ab11a4fa4a46cfd (diff) | |
| download | usermoji-ad37c29898bea8f9fcae80b9771de7022cfb7fb3.tar.xz | |
loader: Use _alloca instead of alloca on Windows
| -rw-r--r-- | loader/loader_platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/loader/loader_platform.h b/loader/loader_platform.h index a7bd0c64..693a3dcf 100644 --- a/loader/loader_platform.h +++ b/loader/loader_platform.h @@ -198,6 +198,10 @@ using namespace std; // "CMakeLists.txt" file). #define snprintf _snprintf #define PRINTF_SIZE_T_SPECIFIER "%Iu" + +// Microsoft doesn't implement alloca, instead we have _alloca +#define alloca _alloca + // Microsoft also doesn't have basename(). Paths are different on Windows, and // so this is just a temporary solution in order to get us compiling, so that we // can test some scenarios, and develop the correct solution for Windows. |
