Browse Source

minor tweaks

Ray 3 years ago
parent
commit
2a2c9e4da8
5 changed files with 10 additions and 10 deletions
  1. 2 2
      src/easings.h
  2. 2 2
      src/raymath.h
  3. 2 2
      src/rcamera.h
  4. 2 2
      src/rgestures.h
  5. 2 2
      src/utils.h

+ 2 - 2
src/easings.h

@@ -96,7 +96,7 @@
     #define PI 3.14159265358979323846f //Required as PI is not always defined in math.h
     #define PI 3.14159265358979323846f //Required as PI is not always defined in math.h
 #endif
 #endif
 
 
-#ifdef __cplusplus
+#if defined(__cplusplus)
 extern "C" {            // Prevents name mangling of functions
 extern "C" {            // Prevents name mangling of functions
 #endif
 #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);
     return (postFix*sinf((t*d-s)*(2.0f*PI)/p)*0.5f + c + b);
 }
 }
 
 
-#ifdef __cplusplus
+#if defined(__cplusplus)
 }
 }
 #endif
 #endif
 
 

+ 2 - 2
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
 // Wrap input value from min to max
 RMAPI float Wrap(float value, float min, float 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
 // Check whether two given floats are almost equal

+ 2 - 2
src/rcamera.h

@@ -103,7 +103,7 @@
 // Module Functions Declaration
 // Module Functions Declaration
 //----------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------
 
 
-#ifdef __cplusplus
+#if defined(__cplusplus)
 extern "C" {            // Prevents name mangling of functions
 extern "C" {            // Prevents name mangling of functions
 #endif
 #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)
                            int keyUp, int keyDown);         // Set camera move controls (1st person and 3rd person cameras)
 #endif
 #endif
 
 
-#ifdef __cplusplus
+#if defined(__cplusplus)
 }
 }
 #endif
 #endif
 
 

+ 2 - 2
src/rgestures.h

@@ -118,7 +118,7 @@ typedef struct {
 // Module Functions Declaration
 // Module Functions Declaration
 //----------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------
 
 
-#ifdef __cplusplus
+#if defined(__cplusplus)
 extern "C" {            // Prevents name mangling of functions
 extern "C" {            // Prevents name mangling of functions
 #endif
 #endif
 
 
@@ -137,7 +137,7 @@ Vector2 GetGesturePinchVector(void);                    // Get gesture pinch del
 float GetGesturePinchAngle(void);                       // Get gesture pinch angle
 float GetGesturePinchAngle(void);                       // Get gesture pinch angle
 #endif
 #endif
 
 
-#ifdef __cplusplus
+#if defined(__cplusplus)
 }
 }
 #endif
 #endif
 
 

+ 2 - 2
src/utils.h

@@ -65,7 +65,7 @@
 //----------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------
 // Module Functions Declaration
 // Module Functions Declaration
 //----------------------------------------------------------------------------------
 //----------------------------------------------------------------------------------
-#ifdef __cplusplus
+#if defined(__cplusplus)
 extern "C" {            // Prevents name mangling of functions
 extern "C" {            // Prevents name mangling of functions
 #endif
 #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!
 FILE *android_fopen(const char *fileName, const char *mode);           // Replacement for fopen() -> Read-only!
 #endif
 #endif
 
 
-#ifdef __cplusplus
+#if defined(__cplusplus)
 }
 }
 #endif
 #endif