Skip to content

Commit 40e53e5

Browse files
author
Jeff Baylor
committed
snprintf define consolidated to common.h
1 parent 744779d commit 40e53e5

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ extern "C" {
8585

8686
#if !defined(_MSC_VER)
8787
#include <unistd.h>
88+
#elif _MSC_VER < 1900
89+
#define snprintf _snprintf
8890
#endif
8991
#include <time.h>
9092

driver/others/openblas_get_config.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ 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
41-
#endif
42-
#endif
43-
4438
static char* openblas_config_str=""
4539
"OpenBLAS "
4640
VERSION

utest/ctest.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ struct ctest {
8383
#undef CTEST_SEGFAULT
8484
#endif
8585

86-
#if _MSC_VER < 1900
87-
#define snprintf _snprintf
88-
#endif
89-
9086
#ifndef __cplusplus
9187
#define inline __inline
9288
#endif

0 commit comments

Comments
 (0)