replaced pragma once with classic defines to omit warnings in gcc

This commit is contained in:
incredibleLeitman 2020-11-29 03:13:39 +01:00
parent dce7bb581b
commit 6056640ad4
3 changed files with 12 additions and 6 deletions

View File

@ -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());
}
};
};
#endif // POINT_H

View File

@ -1,4 +1,5 @@
#pragma once
#ifndef QUICKHULL_H
#define QUICKHULL_H
#include <list>
#include <bits/stdc++.h> // 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);
}
};
};
#endif // QUICKHULL_H

View File

@ -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;
}
};
};
#endif // TRIANGLE_H