Browse Source

Fix definition of snprintf for MSVC

MS _snprintf_s takes an additional argument for the size of the buffer, so is not a direct replacement (utest/ctest.h from which I copied was wrong)
tags/v0.3.2^2
Martin Kroeker GitHub 7 years ago
parent
commit
571e9de2ac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      driver/others/openblas_get_config.c

+ 1
- 1
driver/others/openblas_get_config.c View File

@@ -37,7 +37,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#if defined(_WIN32) && defined(_MSC_VER)
#if _MSC_VER < 1900
#define snprintf _snprintf_s
#define snprintf _snprintf
#endif
#endif



Loading…
Cancel
Save