Merge pull request #2092 from jeffbaylor/snprintf_with_MSC_VER

snprintf define consolidated to common.h
This commit is contained in:
Martin Kroeker 2019-04-23 20:12:06 +02:00 committed by GitHub
commit 6b41eb9c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View File

@ -85,6 +85,8 @@ extern "C" {
#if !defined(_MSC_VER) #if !defined(_MSC_VER)
#include <unistd.h> #include <unistd.h>
#elif _MSC_VER < 1900
#define snprintf _snprintf
#endif #endif
#include <time.h> #include <time.h>

View File

@ -35,12 +35,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <string.h> #include <string.h>
#if defined(_WIN32) && defined(_MSC_VER)
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#endif
static char* openblas_config_str="" static char* openblas_config_str=""
"OpenBLAS " "OpenBLAS "
VERSION VERSION

View File

@ -83,10 +83,6 @@ struct ctest {
#undef CTEST_SEGFAULT #undef CTEST_SEGFAULT
#endif #endif
#if _MSC_VER < 1900
#define snprintf _snprintf
#endif
#ifndef __cplusplus #ifndef __cplusplus
#define inline __inline #define inline __inline
#endif #endif