diff --git a/Point.h b/Point.h index 92a2864..9d47ab8 100644 --- a/Point.h +++ b/Point.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef POINT_H +#define POINT_H class Point { @@ -50,4 +51,5 @@ public: { return (x() == other.x() && y() == other.y()); } -}; \ No newline at end of file +}; +#endif // POINT_H \ No newline at end of file diff --git a/Quickhull.h b/Quickhull.h index 96123c7..6353342 100644 --- a/Quickhull.h +++ b/Quickhull.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef QUICKHULL_H +#define QUICKHULL_H #include #include // For INT_MIN & INT_MAX @@ -149,4 +150,5 @@ private: get_hull_with_line(left_of_line1, output, new_line1); get_hull_with_line(left_of_line2, output, new_line2); } -}; \ No newline at end of file +}; +#endif // QUICKHULL_H \ No newline at end of file diff --git a/Triangle.h b/Triangle.h index ffc7085..4312839 100644 --- a/Triangle.h +++ b/Triangle.h @@ -1,4 +1,5 @@ -#pragma once +#ifndef TRIANGLE_H +#define TRIANGLE_H #include "Point.h" #include "Line.h" @@ -34,4 +35,5 @@ public: { return m_l3; } -}; \ No newline at end of file +}; +#endif // TRIANGLE_H \ No newline at end of file