Browse Source

AP_Math: replace header guard with pragma once

master
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
b4a8a0b961
  1. 6
      libraries/AP_Math/matrix3.h
  2. 5
      libraries/AP_Math/quaternion.h
  3. 6
      libraries/AP_Math/vector2.h
  4. 6
      libraries/AP_Math/vector3.h
  5. 6
      libraries/AP_Math/vectorN.h

6
libraries/AP_Math/matrix3.h

@ -36,9 +36,7 @@ @@ -36,9 +36,7 @@
// Matrix3ul 3x3 matrix of unsigned longs
// Matrix3f 3x3 matrix of signed floats
//
#ifndef MATRIX3_H
#define MATRIX3_H
#pragma once
#include "vector3.h"
@ -242,5 +240,3 @@ typedef Matrix3<int32_t> Matrix3l; @@ -242,5 +240,3 @@ typedef Matrix3<int32_t> Matrix3l;
typedef Matrix3<uint32_t> Matrix3ul;
typedef Matrix3<float> Matrix3f;
typedef Matrix3<double> Matrix3d;
#endif // MATRIX3_H

5
libraries/AP_Math/quaternion.h

@ -16,9 +16,7 @@ @@ -16,9 +16,7 @@
// Copyright 2012 Andrew Tridgell, all rights reserved.
// Refactored by Jonathan Challinger
#ifndef QUATERNION_H
#define QUATERNION_H
#pragma once
#include <math.h>
#if MATH_CHECK_INDEXES
@ -124,4 +122,3 @@ public: @@ -124,4 +122,3 @@ public:
Quaternion &operator*=(const Quaternion &v);
Quaternion operator/(const Quaternion &v) const;
};
#endif // QUATERNION_H

6
libraries/AP_Math/vector2.h

@ -28,9 +28,7 @@ @@ -28,9 +28,7 @@
* © 2003, This code is provided "as is" and you can use it freely as long as
* credit is given to Bill Perone in the application it is used in
****************************************/
#ifndef VECTOR2_H
#define VECTOR2_H
#pragma once
#include <math.h>
@ -161,5 +159,3 @@ typedef Vector2<uint16_t> Vector2ui; @@ -161,5 +159,3 @@ typedef Vector2<uint16_t> Vector2ui;
typedef Vector2<int32_t> Vector2l;
typedef Vector2<uint32_t> Vector2ul;
typedef Vector2<float> Vector2f;
#endif // VECTOR2_H

6
libraries/AP_Math/vector3.h

@ -46,9 +46,7 @@ @@ -46,9 +46,7 @@
* or if the matrix (A) * b = 0
*
****************************************/
#ifndef VECTOR3_H
#define VECTOR3_H
#pragma once
#include <math.h>
#include <float.h>
@ -219,5 +217,3 @@ typedef Vector3<int32_t> Vector3l; @@ -219,5 +217,3 @@ typedef Vector3<int32_t> Vector3l;
typedef Vector3<uint32_t> Vector3ul;
typedef Vector3<float> Vector3f;
typedef Vector3<double> Vector3d;
#endif // VECTOR3_H

6
libraries/AP_Math/vectorN.h

@ -13,9 +13,7 @@ @@ -13,9 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef VECTORN_H
#define VECTORN_H
#pragma once
#include <math.h>
#include <string.h>
@ -140,5 +138,3 @@ public: @@ -140,5 +138,3 @@ public:
private:
T _v[N];
};
#endif // VECTORN_H

Loading…
Cancel
Save