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

VS2015: "No snprintf function found, please report!" #12

Closed
cmdrf opened this issue Jun 6, 2015 · 1 comment
Closed

VS2015: "No snprintf function found, please report!" #12

cmdrf opened this issue Jun 6, 2015 · 1 comment

Comments

@cmdrf
Copy link

cmdrf commented Jun 6, 2015

VS2015 finally implements snprintf, however the OpenAL CMakeLists.txt Fails to find it, giving the message "No snprintf function found, please report!".

Replacing the line
CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF)
with
CHECK_SYMBOL_EXISTS(snprintf stdio.h HAVE_SNPRINTF)
fixes the issue. However, I'm not sure which implications exist for other OSes, and if the search for _snprintf is maybe unnecessary.

@kcat
Copy link
Owner

kcat commented Jun 7, 2015

That change should be fine (my man pages also say snprintf is in stdio.h). Searching for _snprintf is still necessary for older MSVC versions, though as long as snprintf is found the script shouldn't bother looking.

Thanks! Fixed in commit 5543000.

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