diff --git a/src/physac.h b/src/physac.h index 3e05f217a..fb03e2a6a 100644 --- a/src/physac.h +++ b/src/physac.h @@ -106,17 +106,18 @@ // NOTE: Below types are required for PHYSAC_STANDALONE usage //---------------------------------------------------------------------------------- #if defined(PHYSAC_STANDALONE) + // Boolean type + #if defined(__STDC__) && __STDC_VERSION__ >= 199901L + #include + #elif !defined(__cplusplus) && !defined(bool) + typedef enum { false, true } bool; + #endif + // Vector2 type typedef struct Vector2 { float x; float y; } Vector2; - - // Boolean type - #if !defined(_STDBOOL_H) - typedef enum { false, true } bool; - #define _STDBOOL_H - #endif #endif typedef enum PhysicsShapeType { PHYSICS_CIRCLE, PHYSICS_POLYGON } PhysicsShapeType;