diff --git a/src/easings.h b/src/easings.h index fb723d83..ae04fa2f 100644 --- a/src/easings.h +++ b/src/easings.h @@ -96,7 +96,7 @@ #define PI 3.14159265358979323846f //Required as PI is not always defined in math.h #endif -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { // Prevents name mangling of functions #endif @@ -256,7 +256,7 @@ EASEDEF float EaseElasticInOut(float t, float b, float c, float d) // Ease: Elas return (postFix*sinf((t*d-s)*(2.0f*PI)/p)*0.5f + c + b); } -#ifdef __cplusplus +#if defined(__cplusplus) } #endif diff --git a/src/raymath.h b/src/raymath.h index d942bdd9..fbe4cead 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -201,9 +201,9 @@ RMAPI float Remap(float value, float inputStart, float inputEnd, float outputSta // Wrap input value from min to max RMAPI float Wrap(float value, float min, float max) { - float result = value - (max - min)*floorf((value - min)/(max - min)); + float result = value - (max - min)*floorf((value - min)/(max - min)); - return result; + return result; } // Check whether two given floats are almost equal diff --git a/src/rcamera.h b/src/rcamera.h index ef30be3c..37ea13a6 100644 --- a/src/rcamera.h +++ b/src/rcamera.h @@ -103,7 +103,7 @@ // Module Functions Declaration //---------------------------------------------------------------------------------- -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { // Prevents name mangling of functions #endif @@ -119,7 +119,7 @@ void SetCameraMoveControls(int keyFront, int keyBack, int keyUp, int keyDown); // Set camera move controls (1st person and 3rd person cameras) #endif -#ifdef __cplusplus +#if defined(__cplusplus) } #endif diff --git a/src/rgestures.h b/src/rgestures.h index d32ea25f..e33e52ef 100644 --- a/src/rgestures.h +++ b/src/rgestures.h @@ -118,7 +118,7 @@ typedef struct { // Module Functions Declaration //---------------------------------------------------------------------------------- -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { // Prevents name mangling of functions #endif @@ -137,7 +137,7 @@ Vector2 GetGesturePinchVector(void); // Get gesture pinch del float GetGesturePinchAngle(void); // Get gesture pinch angle #endif -#ifdef __cplusplus +#if defined(__cplusplus) } #endif diff --git a/src/utils.h b/src/utils.h index 80271770..a2b3e03c 100644 --- a/src/utils.h +++ b/src/utils.h @@ -65,7 +65,7 @@ //---------------------------------------------------------------------------------- // Module Functions Declaration //---------------------------------------------------------------------------------- -#ifdef __cplusplus +#if defined(__cplusplus) extern "C" { // Prevents name mangling of functions #endif @@ -74,7 +74,7 @@ void InitAssetManager(AAssetManager *manager, const char *dataPath); // Initia FILE *android_fopen(const char *fileName, const char *mode); // Replacement for fopen() -> Read-only! #endif -#ifdef __cplusplus +#if defined(__cplusplus) } #endif