Skip to content

fix: make threepp compatiable with windows.h#293

Merged
markaren merged 1 commit intomarkaren:masterfrom
cubesky:master
May 24, 2025
Merged

fix: make threepp compatiable with windows.h#293
markaren merged 1 commit intomarkaren:masterfrom
cubesky:master

Conversation

@cubesky
Copy link
Contributor

@cubesky cubesky commented May 24, 2025

The following word is used in windows internal header:

  • far
  • near
  • DELETE

So, if threepp is work with windows.h (include wxWidgets and other), it will not compile.

This patch renamed far to farPlane, near to nearPlane, Key::DELETE to Key::DEL to avoid conflict.

Signed-off-by: cubesky <wqr3011@gmail.com>
@markaren markaren merged commit 1915905 into markaren:master May 24, 2025
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.

2 participants