Skip to content

Commit 448ed15

Browse files
authored
Merge pull request #1678 from martin-frbg/issue1677
Define snprintf for older versions of MSVC
2 parents 4dd70d9 + 045fb5e commit 448ed15

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

driver/others/openblas_get_config.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3535

3636
#include <string.h>
3737

38+
#if defined(_WIN32) && defined(_MSC_VER)
39+
#if _MSC_VER < 1900
40+
#define snprintf _snprintf_s
41+
#endif
42+
#endif
43+
3844
static char* openblas_config_str=""
3945
#ifdef USE64BITINT
4046
"USE64BITINT "

0 commit comments

Comments
 (0)