X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2Flayout-test.cxx;h=d4bf53a567b9824b48dee6b16cce3833c3deef7f;hb=474789269b7656509f62339c17e62a55b6157d43;hp=feb8f207f68e2ea67a593a5af74d43ccf2c0a4da;hpb=eeeee3a53eaf9ae51af307ca64f78530d1df0ff6;p=flightgear.git diff --git a/src/GUI/layout-test.cxx b/src/GUI/layout-test.cxx index feb8f207f..d4bf53a56 100644 --- a/src/GUI/layout-test.cxx +++ b/src/GUI/layout-test.cxx @@ -1,6 +1,11 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + #include -#include +#include +#include #include #include #include @@ -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("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); }