Browse Source

snprintf define consolidated to common.h

tags/v0.3.6^2
Jeff Baylor 6 years ago
parent
commit
40e53e52d6
3 changed files with 2 additions and 10 deletions
  1. +2
    -0
      common.h
  2. +0
    -6
      driver/others/openblas_get_config.c
  3. +0
    -4
      utest/ctest.h

+ 2
- 0
common.h View File

@@ -85,6 +85,8 @@ extern "C" {

#if !defined(_MSC_VER)
#include <unistd.h>
#elif _MSC_VER < 1900
#define snprintf _snprintf
#endif
#include <time.h>



+ 0
- 6
driver/others/openblas_get_config.c View File

@@ -35,12 +35,6 @@ 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
#endif
#endif

static char* openblas_config_str=""
"OpenBLAS "
VERSION


+ 0
- 4
utest/ctest.h View File

@@ -83,10 +83,6 @@ struct ctest {
#undef CTEST_SEGFAULT
#endif

#if _MSC_VER < 1900
#define snprintf _snprintf
#endif

#ifndef __cplusplus
#define inline __inline
#endif


Loading…
Cancel
Save