From a6ecf450bc7a65e51a209c13955a69ba6acfc565 Mon Sep 17 00:00:00 2001 From: Brian-E Date: Wed, 20 Sep 2023 20:27:09 +0100 Subject: [PATCH] used `#if !defined()` instead of `#ifndef` --- src/raymath.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/raymath.h b/src/raymath.h index 4ebda0f04..db04c51ee 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -214,7 +214,7 @@ RMAPI float Wrap(float value, float min, float max) // Check whether two given floats are almost equal RMAPI int FloatEquals(float x, float y) { -#ifndef EPSILON +#if !defined(EPSILON) #define EPSILON 0.000001f #endif @@ -510,7 +510,7 @@ RMAPI Vector2 Vector2ClampValue(Vector2 v, float min, float max) // Check whether two given vectors are almost equal RMAPI int Vector2Equals(Vector2 p, Vector2 q) { -#ifndef EPSILON +#if !defined(EPSILON) #define EPSILON 0.000001f #endif @@ -1098,7 +1098,7 @@ RMAPI Vector3 Vector3ClampValue(Vector3 v, float min, float max) // Check whether two given vectors are almost equal RMAPI int Vector3Equals(Vector3 p, Vector3 q) { -#ifndef EPSILON +#if !defined(EPSILON) #define EPSILON 0.000001f #endif @@ -1858,7 +1858,7 @@ RMAPI Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount) { Quaternion result = { 0 }; -#ifndef EPSILON +#if !defined(EPSILON) #define EPSILON 0.000001f #endif @@ -2169,7 +2169,7 @@ RMAPI Quaternion QuaternionTransform(Quaternion q, Matrix mat) // Check whether two given quaternions are almost equal RMAPI int QuaternionEquals(Quaternion p, Quaternion q) { -#ifndef EPSILON +#if !defined(EPSILON) #define EPSILON 0.000001f #endif