Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_WIN32 Define leads to wrong include paths #95

Open
CoffeeCrew opened this issue Oct 20, 2020 · 1 comment
Open

_WIN32 Define leads to wrong include paths #95

CoffeeCrew opened this issue Oct 20, 2020 · 1 comment

Comments

@CoffeeCrew
Copy link

CoffeeCrew commented Oct 20, 2020

I'm not sure if it's a problem related to the plugin or to VisualStudio Code but maybe someone can help. I have a IAR project which works perfectly fine with the plugin except that somehow _WIN32 is always defined. This leads to wrong include pathes because some files include others depending on the used platform. I have searched where _WIN32 could be defined but didn't found anything.
Currently I have fixed this issue temporarily by adding a

#undef _WIN32

line but doing this in a larger project for every file is kind of annoying. Maybe someone can explain this behaviour and how to fix it.

Thanks in advance.

@httpftpli
Copy link

I'm in the same trouble. Maybe The cause of the problem is that the extension rewrite the file c_cpp_properties.json,and set IntelliSense mode MSVC-X64.

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

No branches or pull requests

2 participants