Skip to content

Commit

Permalink
patched fromTOML to fix MacOS testing
Browse files Browse the repository at this point in the history
  • Loading branch information
polar committed Mar 26, 2024
1 parent c152c27 commit 5bfe3b8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/libexpr/primops/fromTOML.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
#include "primops.hh"
#include "eval-inline.hh"


/*
FIXME: currently, toml11 requires us to set
the C++ version to differentiate between
invoke_result and result_of. Fixes compilation
on MacOS.
https://stackoverflow.com/questions/75121130
*/
#ifndef __cplusplus
#define __cplusplus 202000L
#endif

#include "../../toml11/toml.hpp"

#include <sstream>
Expand Down

0 comments on commit 5bfe3b8

Please sign in to comment.