Paste: minimal patch to make clay compileable on msvc again
Author: | elrood |
Mode: | patch |
Date: | Sun, 8 Aug 2010 14:09:05 |
Plain Text |
diff -r e8a93afecc40 compiler/src/clay.hpp
+++ b/compiler/src/clay.hpp Sun Aug 08 16:07:11 2010 +0200
@@ -36,6 +36,11 @@
using std::ostream;
using std::ostringstream;
+#ifdef _MSC_VER
+#define strtoll _strtoi64
+#define strtoull _strtoui64
+#endif
+
♀
//
// Target-specific types
diff -r e8a93afecc40 compiler/src/hirestimer.cpp
+++ b/compiler/src/hirestimer.cpp Sun Aug 08 16:07:11 2010 +0200
@@ -38,6 +38,6 @@
HiResTimer::HiResTimer() {}
void HiResTimer::start() {}
void HiResTimer::stop() {}
+unsigned long long HiResTimer::elapsedNanos() { return 0; }
#endif // __APPLE__
New Annotation