17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-29 02:17:28 +01:00

add the C library headers MSVC needs

Unqualified uint8_t/size_t and friends were reaching 24 units through
some other header on libstdc++; MSVC's STL does not do that, which broke
gl/ubo.cppm (and made its UBS_PAD macro look like garbage). Also
silences C5244, MSVC's counterpart to the clang warning about glm being
included in the module purview, which is deliberate here.
This commit is contained in:
maj00r
2026-09-10 00:10:52 +02:00
parent 7667d8d4d3
commit 2896c2dd60
32 changed files with 41 additions and 0 deletions

View File

@@ -46,6 +46,10 @@ export module eu07.glm;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
#endif
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 5244)
#endif
export {
#include <glm/glm.hpp>
#include <glm/fwd.hpp>
@@ -71,6 +75,9 @@ export {
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef _MSC_VER
#pragma warning(pop)
#endif
export {
// 12-byte vec3 that stays packed regardless of GLM_FORCE_DEFAULT_ALIGNED_GENTYPES.