From df2f5a1b6eebe50d8e5f3becf22f1e70551e3fd1 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 22 Nov 2015 10:34:56 -0800 Subject: [PATCH] Adding no-op color operators so unhandled platforms can still link. --- source/print.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/source/print.cpp b/source/print.cpp index 9269e413e2b..baffc506e62 100644 --- a/source/print.cpp +++ b/source/print.cpp @@ -107,5 +107,21 @@ clr::blue::operator const char*() { return ""; } +} // namespace libspirv +#else +namespace libspirv { + +clr::reset::operator const char*() { return ""; } + +clr::grey::operator const char*() { return ""; } + +clr::red::operator const char*() { return ""; } + +clr::green::operator const char*() { return ""; } + +clr::yellow::operator const char*() { return ""; } + +clr::blue::operator const char*() { return ""; } + } // namespace libspirv #endif