]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/layout-test.cxx
Autopilot: clean up the helpers code (which drives the various /internal/) properties...
[flightgear.git] / src / GUI / layout-test.cxx
index feb8f207f68e2ea67a593a5af74d43ccf2c0a4da..d4bf53a567b9824b48dee6b16cce3833c3deef7f 100644 (file)
@@ -1,6 +1,11 @@
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <iostream>
 
-#include <GL/gl.h>
+#include <simgear/compiler.h>
+#include <osg/GL>
 #include <plib/pw.h>
 #include <plib/pu.h>
 #include <simgear/props/props.hxx>
@@ -37,7 +42,7 @@ int main(int argc, char** argv)
     }
     fclose(tmp);
 
-    pwInit(0, 0, 600, 400, 0, "Layout Test", true, 0);
+    pwInit(0, 0, 600, 400, 0, const_cast<char*>("Layout Test"), true, 0);
     pwSetCallbacks(keyboardCB, mouseButtonCB, mouseMotionCB,
                    resizeCB, exitCB);
 
@@ -52,5 +57,5 @@ int main(int argc, char** argv)
     int pw=0, ph=0;
     w.calcPrefSize(&pw, &ph);
     w.layout(0, 0, pw, ph);
-    writeProperties(cout, &props, true);
+    writeProperties(std::cout, &props, true);
 }