Skip to content

Commit fee8d08

Browse files
authored
Merge pull request #519 from sbmlteam/emscripten-compile-fix
- include <new>
2 parents 2de20da + 97fbba5 commit fee8d08

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/sbml/common/extern.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
#ifndef LIBSBML_EXTERN_H
4343
#define LIBSBML_EXTERN_H
4444

45+
#ifdef __cplusplus
46+
#include <new> // <-- workaround against compilation errors caused by std::nothrow
47+
#endif
48+
49+
4550
#include <sbml/common/libsbml-namespace.h>
4651

4752
#if ( defined(WIN32) && !defined(CYGWIN) && !defined(__MINGW32__))

0 commit comments

Comments
 (0)