From 7cc8faf7daa1e3d0f742bbc118b9705b0546e072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Wahlstrand?= Date: Fri, 12 Apr 2019 21:41:30 +0200 Subject: [PATCH] Use typedef rather than #define in order to avoid issues in application code --- src/raylib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {