Okay, got that minor issue fixed. Had to add this to the Meson script:
add_project_arguments('-D_AFXDLL',
language: 'cpp')
Now that it’s using C++20 as the standard, it’s exposed a few other real code errors that I’m working on fixing. 🙂
Got one that’s an issue with the Windows API that I’m unfamiliar with:
../Common/Time/tasktime.cpp(231): error C2664: 'MMRESULT timeSetEvent(UINT,UINT,LPTIMECALLBACK,DWORD_PTR,UINT)': cannot convert argument 3 from 'void (__cdecl *)(UINT,UINT,DWORD,DWORD,DWORD)' to 'LPTIMECALLBACK'
../Common/Time/tasktime.cpp(231): note: None of the functions with this name in scope match the target type
Here’s the line it’s crapping out on: https://github.com/deathssoul/MWEdit/blob/meson/Common/Time/tasktime.cpp#L231
After doing some looking, that file may not be needed anyways so I’ve temporarily commented it out of the build script which fixed that issue as it’s no longer trying to compile it. Still working through the updates to the code. The old project file was using the C++14 standard but C++20 is much better. Also stricter, which is why there are a lot of kinks to work out.
