Skip to content

Commit 36aea5c

Browse files
authored
Merge pull request #1680 from martin-frbg/snprint
Fix wrong redefinitions of snprintf for older MSVC
2 parents 448ed15 + 1309711 commit 36aea5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

driver/others/openblas_get_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3737

3838
#if defined(_WIN32) && defined(_MSC_VER)
3939
#if _MSC_VER < 1900
40-
#define snprintf _snprintf_s
40+
#define snprintf _snprintf
4141
#endif
4242
#endif
4343

utest/ctest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct ctest {
8484
#endif
8585

8686
#if _MSC_VER < 1900
87-
#define snprintf _snprintf_s
87+
#define snprintf _snprintf
8888
#endif
8989

9090
#ifndef __cplusplus

0 commit comments

Comments
 (0)