Skip to content

Fix include paths for compatibility#1079

Open
bpm-mcgill wants to merge 1 commit intosmartcmd:mainfrom
bpm-mcgill:msvc-fix
Open

Fix include paths for compatibility#1079
bpm-mcgill wants to merge 1 commit intosmartcmd:mainfrom
bpm-mcgill:msvc-fix

Conversation

@bpm-mcgill
Copy link

Description

MSVC allows backslashes and case-insensitive include paths, which causes build failures on other compilers. This commit:

  • Converts all include backslashes to forward slashes.
  • Fixes capitalization mismatches to match the actual filesystem.

Changes

Every .c, .cpp, .h, .hpp file was reviewed and every single include backslash was switched to a forward slash. Some of the includes also had capitalization mismatches, so those were fixed as well.

Behavior

Behavior did NOT change at all. The code still compiles the exact same. None of these changes actually affect how the code compiles or the final binary. Just to be sure, I have personally verified that the codebase still compiles and runs.

Fix Implementation

An specific tailored automated script was made in order to automatically apply these changes to the codebase. The script can be provided if needed.

AI Use Disclosure

N/A

Related Issues

It seems 465 is having issues getting the changes merged. This PR just breaks off an aspect of 465 and separates it.
These changes set up eventually having Linux cross-compile support.

MSVC allows backslashes and case-insensitive include paths, which causes
build failures on other compilers. This commit:
- Converts all include backslashes to forward slashes.
- Fixes capitalization mismatches to match the actual filesystem.
@chasem-dev
Copy link

This MR drastically cuts down porting and compiling on MAC.

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