Commit 9c318342 by Jamie Madill

Fix build on QNX.

InfoSink.h needs stdlib.h for abs(int) and free() in the global namespace. ExpressionParser needs malloc.h, because bison needs malloc and free in the global namespace, but "#include <cassert>" will put it only in the std:: namespace on QNX. BUG=500 R=geofflang@chromium.org, jmadill@chromium.org, shannonwoods@chromium.org, zmo@chromium.org Review URL: https://codereview.appspot.com/19330044
parent 4b48845f
...@@ -92,7 +92,12 @@ ...@@ -92,7 +92,12 @@
#include "ExpressionParser.h" #include "ExpressionParser.h"
#if defined(_MSC_VER)
#include <malloc.h> #include <malloc.h>
#else
#include <stdlib.h>
#endif
#include <cassert> #include <cassert>
#include <sstream> #include <sstream>
......
...@@ -33,7 +33,12 @@ WHICH GENERATES THE GLSL ES preprocessor expression parser. ...@@ -33,7 +33,12 @@ WHICH GENERATES THE GLSL ES preprocessor expression parser.
#include "ExpressionParser.h" #include "ExpressionParser.h"
#if defined(_MSC_VER)
#include <malloc.h> #include <malloc.h>
#else
#include <stdlib.h>
#endif
#include <cassert> #include <cassert>
#include <sstream> #include <sstream>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment