Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
game_shared: include malloc.h on win32, otherwise use alloca.h
alloca() is a nonstandard function, and its definition location depends on the platform. Ideally, we test which header defines it, on Win32 it's malloc.h as per the documentation, on *nixes it's usually alloca.h, but sometimes it's even stdlib.h. For now, just include alloca.h to fix building on macOS (thanks @FiEctro for the help!)
- Loading branch information