mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-30 06:52:49 -06:00
use alloca for compatibility with MSVC
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user