projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61659f8
)
Define snprintf for older versions of MSVC
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Thu, 12 Jul 2018 05:30:58 +0000
(07:30 +0200)
committer
GitHub
<noreply@github.com>
Thu, 12 Jul 2018 05:30:58 +0000
(07:30 +0200)
for #1677
driver/others/openblas_get_config.c
patch
|
blob
|
history
diff --git
a/driver/others/openblas_get_config.c
b/driver/others/openblas_get_config.c
index
87a2771
..
ecafa16
100644
(file)
--- a/
driver/others/openblas_get_config.c
+++ b/
driver/others/openblas_get_config.c
@@
-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 "