move 'stdbool.h' to common header, add missing common.h header to public headers

This commit is contained in:
Recep Aslantas
2019-03-31 18:58:20 +03:00
parent 6c0c5167b0
commit 81a74ba225
6 changed files with 4 additions and 7 deletions

View File

@@ -8,6 +8,8 @@
#ifndef cglm_bezier_h
#define cglm_bezier_h
#include "common.h"
#define GLM_BEZIER_MAT_INIT {{-1.0f, 3.0f, -3.0f, 1.0f}, \
{ 3.0f, -6.0f, 3.0f, 0.0f}, \
{-3.0f, 3.0f, 0.0f, 0.0f}, \

View File

@@ -14,6 +14,7 @@
#include <stddef.h>
#include <math.h>
#include <float.h>
#include <stdbool.h>
#if defined(_MSC_VER)
# ifdef CGLM_DLL

View File

@@ -8,6 +8,7 @@
#ifndef cglm_project_h
#define cglm_project_h
#include "common.h"
#include "vec3.h"
#include "vec4.h"
#include "mat4.h"

View File

@@ -19,7 +19,6 @@
#define cglm_util_h
#include "common.h"
#include <stdbool.h>
#define GLM_MIN(X, Y) (((X) < (Y)) ? (X) : (Y))
#define GLM_MAX(X, Y) (((X) > (Y)) ? (X) : (Y))

View File

@@ -31,9 +31,6 @@
#include "common.h"
#include "util.h"
#include <stdbool.h>
#include <math.h>
#include <float.h>
/*!
* @brief fill a vector with specified value

View File

@@ -31,9 +31,6 @@
#include "common.h"
#include "vec3-ext.h"
#include <stdbool.h>
#include <math.h>
#include <float.h>
/*!
* @brief fill a vector with specified value