Hi,
Just test build 64 bit using MinGW64 with "old" tutorial OpenGL and I see next "warning" :
C:/src/OpenGL/NeHe_Lesson01-master/src/Lesson01.c:137:9: warning: 'stdcall' calling convention is not supported for this target [-Wignored-attributes]
137 | LRESULT CALLBACK WindowProc(HWND, UINT, WPARAM, LPARAM);
| ^
/usr/include/w32api/minwindef.h:90:18: note: expanded from macro 'CALLBACK'
90 | #define CALLBACK stdcall
| ^
<built-in>:400:34: note: expanded from macro '__stdcall'
400 | #define __stdcall __attribute</built-in>((stdcall))
| ^
C:/src/OpenGL/NeHe_Lesson01-master/src/Lesson01.c:154:5: warning: 'stdcall' calling convention is not supported for this target [-Wignored-attributes]
154 | int WINAPI WinMain(HINSTANCE hInstance,
| ^
/usr/include/w32api/minwindef.h:98:16: note: expanded from macro 'WINAPI'
98 | #define WINAPI stdcall
| ^
<built-in>:400:34: note: expanded from macro '__stdcall'
400 | #define __stdcall __attribute</built-in>((stdcall))
| ^
C:/src/OpenGL/NeHe_Lesson01-master/src/Lesson01.c:294:9: warning: 'stdcall' calling convention is not supported for this target [-Wignored-attributes]
294 | LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
| ^
/usr/include/w32api/minwindef.h:90:18: note: expanded from macro 'CALLBACK'
90 | #define CALLBACK stdcall
| ^
<built-in>:400:34: note: expanded from macro '__stdcall'
400 | #define __stdcall __attribute</built-in>((stdcall))
| ^
3 warnings generated.
Obviously, "__stdcall" calling convention don't apply to 64 bit generation, only to 32 bit generation.
In this include file "include/w32api/minwindef.h", I think it's possible to know if generation is 64 bit.
What your position about this "little" remark (not very important ... sure) ?
Thank's.