|
|
@@ -4,7 +4,7 @@ bool IZ_LogIsSupportedTerminal() { |
|
|
|
bool result; |
|
|
|
const char *term = getenv("TERM"); |
|
|
|
result = term && strcmp(term, "") != 0; |
|
|
|
#ifndef _WIN32 |
|
|
|
#ifndef IZ_WINDOWS |
|
|
|
return result; |
|
|
|
#else |
|
|
|
if (result) { |
|
|
@@ -33,11 +33,7 @@ bool IZ_LogIsSupportedTerminal() { |
|
|
|
} |
|
|
|
|
|
|
|
bool IZ_LogIsSupportedColor(FILE* s) { |
|
|
|
#ifdef IZ_WINDOWS |
|
|
|
return _isatty(_fileno(s)) && IZ_LogIsSupportedTerminal(); |
|
|
|
#else |
|
|
|
return isatty(fileno(s)) && IZ_LogIsSupportedTerminal(); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
void IZ_LogInitialize(const char* context, bool force_output) { |
|
|
|