Skip to content

Fix issues that break MSVC strict compilation#2727

Open
oznogon wants to merge 1 commit intodaid:masterfrom
oznogon:fix-strict-compilation
Open

Fix issues that break MSVC strict compilation#2727
oznogon wants to merge 1 commit intodaid:masterfrom
oznogon:fix-strict-compilation

Conversation

@oznogon
Copy link
Contributor

@oznogon oznogon commented Feb 19, 2026

  • Workaround ambiguous resources.h includes in EmptyEpsilon/init/ by including SP's resources.h
  • Include vectorUtils.h in components/beamweapon.cpp to ensure that M_PI is available
  • Use _WIN32 instead of WIN32 in preprocessor ifdefs; MSVC 18 doesn't appear to define WIN32

These changes should have no impact on non-MSVC builds, and would contribute toward unblocking MSVC as a compiler.

- Workaround ambiguous resources.h includes in
  EmptyEpsilon/init/ by including SP's resources.h
- Include vectorUtils.h in components/beamweapon.cpp to ensure
  that M_PI is available
- Use _WIN32 instead of WIN32 in preprocessor ifdefs; MSVC 18
  doesn't appear to define WIN32.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant