use alloca for compatibility with MSVC

This commit is contained in:
Krasimir Angelov
2023-01-26 08:31:44 +01:00
parent ee96bcbb1c
commit b138d0c89b
2 changed files with 8 additions and 1 deletions

View File

@@ -21,6 +21,12 @@
#include <stdio.h>
#endif
#ifdef _MSC_VER
#include <alloca.h>
#define alloca _alloca
#endif
class PGF_INTERNAL_DECL pgf_error : public std::runtime_error {
public:
pgf_error(const char *msg) : std::runtime_error(msg)