judge: testlib compile fix (#56)

This commit is contained in:
undefined authored and GitHub committed 2021-03-05 21:52:54 +08:00
commit 4207ce81c3
1 file changed
+5 -3
+5 -3
View File
@@ -1389,10 +1389,12 @@ resultExitCode(TResult r) {
return FAIL_EXIT_CODE;
}
void InStream::textColor(
#if !(defined(ON_WINDOWS) && (!defined(_MSC_VER) || _MSC_VER > 1400)) && defined(__GNUC__)__attribute__((unused))
#if !(defined(ON_WINDOWS) && (!defined(_MSC_VER) || _MSC_VER > 1400)) && defined(__GNUC__)
__attribute__((unused))
#endif
WORD color) {
#if defined(ON_WINDOWS) && (!defined(_MSC_VER) || _MSC_VER > 1400)HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
#if defined(ON_WINDOWS) && (!defined(_MSC_VER) || _MSC_VER > 1400)
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(handle, color);
#endif
#if !defined(ON_WINDOWS) && defined(__GNUC__)
@@ -2860,4 +2862,4 @@ void println(const A& a, const B& b, const C& c, const D& d, const E& e, const F
std::cout << std::endl;
}
#endif
#endif
#endif