X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2Flayout-test.cxx;h=d4bf53a567b9824b48dee6b16cce3833c3deef7f;hb=474789269b7656509f62339c17e62a55b6157d43;hp=075da15a5d0b279aabe5f4e3240f085122cdb186;hpb=4214cd6c10e8e90577673b4a11b6451248b3c6ee;p=flightgear.git diff --git a/src/GUI/layout-test.cxx b/src/GUI/layout-test.cxx index 075da15a5..d4bf53a56 100644 --- a/src/GUI/layout-test.cxx +++ b/src/GUI/layout-test.cxx @@ -1,7 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include -#include SG_GL_H +#include #include #include #include @@ -38,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("Layout Test"), true, 0); pwSetCallbacks(keyboardCB, mouseButtonCB, mouseMotionCB, resizeCB, exitCB); @@ -53,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); }