forgottenserver
forgottenserver copied to clipboard
Fix Visual Studio precompiled header error
Pull Request Prelude
- [x] I have followed proper The Forgotten Server code styling.
- [x] I have read and understood the contribution guidelines before making this PR.
- [x] I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.
Changes Proposed
- This resolves the error
C1010: unexpected end of file while looking for precompiled header in Visual Studio. The issue occurred because the precompiled header was not included in the source file. As a temporary fix, if anyone has a better suggestion for resolving this.
Does including otpch.h in these files help?
Does including
otpch.hin these files help?
The file is already included; it seems that Visual Studio gets confused due to its own config.
Probably related to VS's inability to handle folders.
(Please please use CMake with VS)
https://github.com/otland/forgottenserver/pull/4875 similar fix