aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Wahlstrand <bjorn.wahlstrand@gmail.com>2019-04-12 21:41:30 +0200
committerBjörn Wahlstrand <bjorn.wahlstrand@gmail.com>2019-04-12 21:41:30 +0200
commit7cc8faf7daa1e3d0f742bbc118b9705b0546e072 (patch)
treed00c0cbb419c976cc510e2a07b36ca066cb56275
parentc1d3ba67f8c5559864c56984cf5806a7e4b1c9c3 (diff)
downloadraylib-7cc8faf7daa1e3d0f742bbc118b9705b0546e072.tar.gz
raylib-7cc8faf7daa1e3d0f742bbc118b9705b0546e072.zip
Use typedef rather than #define in order to avoid issues in application code
-rw-r--r--src/raylib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 6d42cfd1..0afa69d0 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -278,7 +278,7 @@ typedef struct Camera3D {
int type; // Camera type, defines projection type: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC
} Camera3D;
-#define Camera Camera3D // Camera type fallback, defaults to Camera3D
+typedef Camera3D Camera; // Camera type fallback, defaults to Camera3D
// Camera2D type, defines a 2d camera
typedef struct Camera2D {