replaced pragma once with classic defines to omit warnings in gcc
This commit is contained in:
parent
dce7bb581b
commit
6056640ad4
6
Point.h
6
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());
|
||||
}
|
||||
};
|
||||
};
|
||||
#endif // POINT_H
|
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user