Przeglądaj źródła

Use typedef rather than #define in order to avoid issues in application code

Björn Wahlstrand 6 lat temu
rodzic
commit
7cc8faf7da
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/raylib.h

+ 1 - 1
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 {