From 7de795a48ff11999a69ee3d208ff37d3535db105 Mon Sep 17 00:00:00 2001 From: SoloArchx250 Date: Sun, 31 May 2020 12:56:53 -0400 Subject: [PATCH] multiple inclide protection --- src/Color.h | 6 +++++- src/Vector.h | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Color.h b/src/Color.h index ecf2d91..690bc78 100644 --- a/src/Color.h +++ b/src/Color.h @@ -1,5 +1,8 @@ #include +#ifndef COLOR +#define COLOR + #ifndef RED #define RED 255,0,0,255 #endif @@ -26,4 +29,5 @@ class Color { uint8_t r,g,b,a; Color(); Color(uint8_t r,uint8_t g,uint8_t b,uint8_t a); -}; \ No newline at end of file +}; +#endif \ No newline at end of file diff --git a/src/Vector.h b/src/Vector.h index 88157d9..e6b5a54 100644 --- a/src/Vector.h +++ b/src/Vector.h @@ -1,6 +1,9 @@ +#ifndef VECTOR +#define VECTOR class Vector { public: float x,y; Vector(); Vector(float x, float y); -}; \ No newline at end of file +}; +#endif \ No newline at end of file