Skip to content

Commit

Permalink
Update muParser.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Berg committed Dec 11, 2024
1 parent 3c83122 commit ee2978e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/muParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,17 @@ namespace mu
*/
int Parser::IsVal(const char_type* a_szExpr, int* a_iPos, value_type* a_fVal)
{
// There is an issue with libc++ where it creates an error if a double value is followed by a character.
// There is an issue with libc++ where it creates an error if a double value is followed by a character which
// is the case when using postfix operators.
//
// http://cplusplus.github.io/LWG/lwg-defects.html#2381
//
// This happens only with libc++, not with libstdc++ (Gnu C++ standard library)
// It seems that Macs are using libc++. This is causing #123. The fix below will fix #123
// but is will break localization support and cause #136.

#if defined(__APPLE__)
// I'm disabling this fix. For systems using libc++ you must put a space between floating point numbers and postfix operators.
#if defined(__APPLE__) && defined(NEVERTRUE)
try
{
std::size_t charsProcessed;
Expand Down

0 comments on commit ee2978e

Please sign in to comment.