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

Default defines for MSVC causes compile/preprocessor error for some win32 headers #138

Open
Maldivia opened this issue Oct 2, 2014 · 5 comments
Milestone

Comments

@Maldivia
Copy link

Maldivia commented Oct 2, 2014

The default defines for C/C++ compilers on Windows defines "Windows" and "WIN32".

The definition of "Windows" clashes with the shldisp.h header file from the Win32 API (which is included if you try to use any shell32.dll functions) -- which results in a lot of error messages.

I know this can be resolved by overriding the default defines, but it might be worth taking into account in the future, including if, by default, defining something not in all uppercase is a good idea.

@dscho
Copy link
Member

dscho commented Oct 2, 2014

@Maldivia Version 3.2.0 of the NAR plugin is imminent. Feel free to contribute a pull request if you want to see this issue fixed in that release. Thank you for your contribution!

@dscho
Copy link
Member

dscho commented Oct 2, 2014

I will start the release procedure in half an hour unless I hear back from you...

@dscho
Copy link
Member

dscho commented Oct 2, 2014

Sorry, 3.2.0 without your contribution... But maybe not 3.2.1?

@Maldivia
Copy link
Author

Maldivia commented Oct 2, 2014

Since noone else have commented on it previously, it doesn't seem that pressing an issue; and I don't know if people are actually using that define, and if changing that will break stuff for them.

I'll make a pull request later, then you can evaluate if it's something you think is worth changing, or if it's just something that people should keep in mind when compiling against Win32.

@dscho
Copy link
Member

dscho commented Dec 9, 2014

@Maldivia do you have any news on this issue?

@ctrueden ctrueden modified the milestone: unscheduled Aug 6, 2015
@ctrueden ctrueden removed the dormant label Aug 6, 2015
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

4 participants