JoshMarler / react-juce

Write cross-platform native apps with React.js and JUCE
https://docs.react-juce.dev
MIT License
765 stars 79 forks source link

Fix Duktape's C++11 detection for MSVC. #164

Open jrlanglois opened 3 years ago

jrlanglois commented 3 years ago

Duktape does a faulty check for MSVC toolchains, specifically because MSVC has never supported the __cplusplus macro (which Duktape is using).

It would be better to define the problematic macro up front, outside of Duktape:

#define DUK_F_CPP11 (JUCE_CXX14_IS_AVAILABLE) //Note that parentheses might be needed
nick-thompson commented 3 years ago

:+1: cool with me! That's perhaps worth opening an issue for in the Duktape repo as well