dff180/pishadertoy — pull request #1 by xranby (2012-08-31 11:31:32+00:00)
Title: Explicit include stdlib.h

Fixes the following two obvious compile errors when using g++ (Debian 4.6.3-1) 4.6.3

g++ -c -g -Wall -O3 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads main.cpp -o main.o
main.cpp: In function ‘int main(int, char**)’:
main.cpp:10:26: error: ‘atexit’ was not declared in this scope

g++ -c -g -Wall -O3 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads MyGLWindow.cpp -o MyGLWindow.o
MyGLWindow.cpp: In constructor ‘MyGLWindow::MyGLWindow(EGLconfig*, std::string, std::string)’:
MyGLWindow.cpp:17:19: error: ‘srand’ was not declared in this scope
MyGLWindow.cpp: In member function ‘virtual void MyGLWindow::paintGL()’:
MyGLWindow.cpp:124:23: error: ‘rand’ was not declared in this scope
MyGLWindow.cpp:124:32: error: ‘RAND_MAX’ was not declared in this scope