Mercurial > dwindows
comparison dwtestoo.cpp @ 2956:afe9c20294ca
Win: Fix building dwtestoo with MinGW32/64. Need to use __cdecl in C++ mode.
Also GCC 12 pukes on lambdas with stdio functions without #include <cstdio>
GCC 8 compiled it fine without the include.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 06 Jan 2023 09:33:59 +0000 |
parents | 34d16576c156 |
children | 217ebbee034f |
comparison
equal
deleted
inserted
replaced
2955:f99414164f5b | 2956:afe9c20294ca |
---|---|
1 // An example Dynamic Windows application and testing | 1 // An example Dynamic Windows application and testing |
2 // ground for Dynamic Windows features in C++. | 2 // ground for Dynamic Windows features in C++. |
3 // By: Brian Smith and Mark Hessling | 3 // By: Brian Smith and Mark Hessling |
4 #include "dw.hpp" | 4 #include "dw.hpp" |
5 #include <cstdio> | |
5 | 6 |
6 // Select a fixed width font for our platform | 7 // Select a fixed width font for our platform |
7 #ifdef __OS2__ | 8 #ifdef __OS2__ |
8 #define FIXEDFONT "5.System VIO" | 9 #define FIXEDFONT "5.System VIO" |
9 #define PLATFORMFOLDER "os2\\" | 10 #define PLATFORMFOLDER "os2\\" |