diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 145: SceneDesktop: Include cstdlib header file to fix compilation with older compilers.

Message ID 20110922105216.18991.47658.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org Sept. 22, 2011, 10:52 a.m. UTC
------------------------------------------------------------
revno: 145
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Wed 2011-09-21 18:00:40 +0300
message:
  SceneDesktop: Include cstdlib header file to fix compilation with older compilers.
  
  Older compiler versions are not able to convert int arguments to float in
  calls to std::abs() provided by cmath. Include cstdlib header to get the
  integer version of std::abs().
modified:
  src/scene-desktop.cpp


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'src/scene-desktop.cpp'
--- src/scene-desktop.cpp	2011-09-19 16:18:59 +0000
+++ src/scene-desktop.cpp	2011-09-21 15:00:40 +0000
@@ -20,6 +20,7 @@ 
  *  Alexandros Frantzis (glmark2)
  */
 #include <cmath>
+#include <cstdlib>
 
 #include "scene.h"
 #include "mat.h"