You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: