compile on linux

This commit is contained in:
2021-03-29 23:18:29 +02:00
parent a92020ac1e
commit 5afa7dd69f
4 changed files with 11 additions and 5 deletions

5
ml.cpp
View File

@@ -51,8 +51,11 @@
// Convert an object to a string using a string stream conveniently
#if __APPLE_
#define to_string(x) static_cast<std::ostringstream>((std::ostringstream() << std::dec << x )).str()
#elif __linux
#define to_string(x) static_cast<std::ostringstream&>((std::ostringstream() << std::dec << x )).str()
#endif
// Is this character a valid lisp symbol character
bool is_symbol(char ch) {