A few linux improvements/fixes for the previous check in.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22292 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-07-08 20:51:29 +00:00
parent 7213324259
commit 3a05b78826
5 changed files with 36 additions and 48 deletions

View file

@ -34,11 +34,7 @@
#include "Include/InfoSink.h"
#ifdef _WIN32
#include <windows.h>
#else
#include <string.h>
#endif
#include <string.h>
void TInfoSinkBase::append(const char *s)
{
@ -47,10 +43,10 @@ void TInfoSinkBase::append(const char *s)
sink.append(s);
}
#ifdef _WIN32
if (outputStream & EDebugger)
OutputDebugString(s);
#endif
//#ifdef _WIN32
// if (outputStream & EDebugger)
// OutputDebugString(s);
//#endif
if (outputStream & EStdOut)
fprintf(stdout, "%s", s);
@ -63,14 +59,14 @@ void TInfoSinkBase::append(int count, char c)
sink.append(count, c);
}
#ifdef _WIN32
if (outputStream & EDebugger) {
char str[2];
str[0] = c;
str[1] = '\0';
OutputDebugString(str);
}
#endif
//#ifdef _WIN32
// if (outputStream & EDebugger) {
// char str[2];
// str[0] = c;
// str[1] = '\0';
// OutputDebugString(str);
// }
//#endif
if (outputStream & EStdOut)
fprintf(stdout, "%c", c);
@ -83,10 +79,10 @@ void TInfoSinkBase::append(const TPersistString& t)
sink.append(t);
}
#ifdef _WIN32
if (outputStream & EDebugger)
OutputDebugString(t.c_str());
#endif
//#ifdef _WIN32
// if (outputStream & EDebugger)
// OutputDebugString(t.c_str());
//#endif
if (outputStream & EStdOut)
fprintf(stdout, "%s", t.c_str());
@ -99,10 +95,10 @@ void TInfoSinkBase::append(const TString& t)
sink.append(t.c_str());
}
#ifdef _WIN32
if (outputStream & EDebugger)
OutputDebugString(t.c_str());
#endif
//#ifdef _WIN32
// if (outputStream & EDebugger)
// OutputDebugString(t.c_str());
//#endif
if (outputStream & EStdOut)
fprintf(stdout, "%s", t.c_str());