I followed your advice, namely, I changed the order of inclusion of includes

What I saw is even more amazing, and I confess I don't understand anything at all.


Code:
||=== Build: Debug in risuj (compiler: GNU GCC Compiler) ===|
C:\CodeBlocks\MinGW\include\wingdi.h|1340|error: 'UINT' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1344|error: 'FLOAT' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1345|error: 'FLOAT' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1346|error: 'FLOAT' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1349|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1350|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1351|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1352|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1353|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1354|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1355|error: 'LPVOID' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1358|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1359|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1360|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1361|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1362|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1366|error: 'BYTE' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1367|error: 'BYTE' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1368|error: 'BYTE' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1373|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1374|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1375|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1376|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1377|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1385|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1386|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1387|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1388|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1389|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1390|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1391|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1392|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1393|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1394|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1395|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1398|error: 'BYTE' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1399|error: 'BYTE' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1400|error: 'BYTE' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1401|error: 'BYTE' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1420|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1421|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1422|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1423|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1424|error: 'WORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1425|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1426|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1427|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1428|error: 'LONG' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1429|error: 'DWORD' does not name a type|
C:\CodeBlocks\MinGW\include\wingdi.h|1430|error: 'DWORD' does not name a type|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 3 second(s)) ===|
However, no, it's understandable, on the contrary, it's understandable. The order of inclusion cannot be changed.