Define snprintf for older versions of MSVC

for #1677
This commit is contained in:
Martin Kroeker 2018-07-12 07:30:58 +02:00 committed by GitHub
parent 61659f8765
commit 045fb5ea2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,12 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <string.h>
#if defined(_WIN32) && defined(_MSC_VER)
#if _MSC_VER < 1900
#define snprintf _snprintf_s
#endif
#endif
static char* openblas_config_str=""
#ifdef USE64BITINT
"USE64BITINT "