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

Remove warning on Visual Studio #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhammerc
Copy link

Tested on Visual Studio 2015, should work on 2012, 2013, 2017 and maybe even more.

Visual Studio refuse to compile due to the use of fopen().
This pragma disable the warning and let the compilation proceed.

I took the code from LodePNG https://github.com/lvandeve/lodepng/blob/master/lodepng.cpp#L37-L40
That's not a very important PR but may be useful to somes !

Thanks.

Tested on Visual Studio 2015, should work on 2012, 2013, 2017 and maybe even more.

Visual Studio refuse to compile due to the use of fopen().
This pragma disable the warning and let the compilation proceed.

I took the code from LodePNG https://github.com/lvandeve/lodepng/blob/master/lodepng.cpp#L37-L40
That's not a very important PR but may be useful to somes !

Thanks.
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.

None yet

1 participant