summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-08-02 17:25:24 +0200
committerRay <[email protected]>2022-08-02 17:25:24 +0200
commit2a2c9e4da864efb087e4a0aec67dc5ec78d35559 (patch)
tree31e10618337d64c77eb7911bcd336efe8a1d41c2 /src
parent6ecb29f33f39d709d73f3de633b095afdbf745cc (diff)
downloadraylib-2a2c9e4da864efb087e4a0aec67dc5ec78d35559.tar.gz
raylib-2a2c9e4da864efb087e4a0aec67dc5ec78d35559.zip
minor tweaks
Diffstat (limited to 'src')
-rw-r--r--src/easings.h4
-rw-r--r--src/raymath.h4
-rw-r--r--src/rcamera.h4
-rw-r--r--src/rgestures.h4
-rw-r--r--src/utils.h4
5 files changed, 10 insertions, 10 deletions
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