GCC compiling fix (std::abs)
This commit is contained in:
Родитель
6348e44c0c
Коммит
5a30d2c9df
|
@ -5,6 +5,8 @@
|
||||||
|
|
||||||
#include "glslOutput.h"
|
#include "glslOutput.h"
|
||||||
|
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
|
|
||||||
int getElements( EGlslSymbolType t )
|
int getElements( EGlslSymbolType t )
|
||||||
{
|
{
|
||||||
|
@ -228,7 +230,7 @@ void TGlslOutputTraverser::outputLineDirective (int line)
|
||||||
{
|
{
|
||||||
if (line <= 0 || !current)
|
if (line <= 0 || !current)
|
||||||
return;
|
return;
|
||||||
if (abs(line - m_LastLineOutput) < 4) // don't sprinkle too many #line directives ;)
|
if (std::abs(line - m_LastLineOutput) < 4) // don't sprinkle too many #line directives ;)
|
||||||
return;
|
return;
|
||||||
std::stringstream& out = current->getActiveOutput();
|
std::stringstream& out = current->getActiveOutput();
|
||||||
out << '\n';
|
out << '\n';
|
||||||
|
|
Загрузка…
Ссылка в новой задаче