win: fix print function for _DEBUG and supress warnings

This commit is contained in:
Recep Aslantas
2020-05-01 01:03:20 +03:00
parent cbed29820b
commit 8eddeb77d0
3 changed files with 7 additions and 2 deletions

View File

@@ -8,7 +8,8 @@
#ifndef cglm_common_h
#define cglm_common_h
#define _USE_MATH_DEFINES /* for windows */
#define _USE_MATH_DEFINES /* for windows */
#define _CRT_SECURE_NO_WARNINGS /* for windows */
#include <stdint.h>
#include <stddef.h>

View File

@@ -17,7 +17,8 @@
#ifndef cglm_io_h
#define cglm_io_h
#if defined(DEBUG) || defined(CGLM_DEFINE_PRINTS) || defined(CGLM_LIB_SRC)
#if defined(DEBUG) || defined(_DEBUG) \
|| defined(CGLM_DEFINE_PRINTS) || defined(CGLM_LIB_SRC)
#include "common.h"

View File

@@ -8,6 +8,9 @@
#ifndef tests_common_h
#define tests_common_h
#define _USE_MATH_DEFINES /* for windows */
#define _CRT_SECURE_NO_WARNINGS /* for windows */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>