]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
pcem: fit graphics sources into C++ builds
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 1 Jun 2026 20:39:20 +0000 (13:39 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 1 Jun 2026 20:39:20 +0000 (13:39 -0700)
commit48dbe22e3242ff847c0f5523e42db4e328212193
treeb0a15e62bf0562d475e2c122caedb17dc2849453
parent72bb7b094e5782d798ce4c3a17018618e3e4d782
pcem: fit graphics sources into C++ builds

WinUAE builds the imported PCem graphics sources as C++ files.
The MGA source includes C atomics directly, and the BT482 RAMDAC
source uses C allocation declarations through C++ headers.

Use C++ atomics when compiling MGA as C++, and include the C++
cstdlib wrapper where the BT482 RAMDAC needs those declarations.
pcem/vid_bt482_ramdac.cpp
pcem/vid_mga.cpp