ArduPlane: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:26:00 -02:00 committed by Andrew Tridgell
parent e88ba38595
commit e01d49ff53
4 changed files with 4 additions and 15 deletions

View File

@ -1,7 +1,5 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef PARAMETERS_H
#define PARAMETERS_H
#pragma once
#include <AP_Common/AP_Common.h>
@ -552,5 +550,3 @@ public:
};
extern const AP_Param::Info var_info[];
#endif // PARAMETERS_H

View File

@ -1,7 +1,5 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef _PLANE_H
#define _PLANE_H
#pragma once
#define THISFIRMWARE "ArduPlane V3.5.0"
#define FIRMWARE_VERSION 3,5,0,FIRMWARE_VERSION_TYPE_OFFICIAL
@ -1067,5 +1065,3 @@ extern Plane plane;
using AP_HAL::millis;
using AP_HAL::micros;
#endif // _PLANE_H_

View File

@ -19,6 +19,7 @@
//
// - Try to keep this file organised in the same order as APM_Config.h.example
//
#pragma once
#include "defines.h"

View File

@ -1,7 +1,5 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef _DEFINES_H
#define _DEFINES_H
#pragma once
// Internal defines, don't edit and expect things to work
// -------------------------------------------------------
@ -207,5 +205,3 @@ enum {
USE_REVERSE_THRUST_FBWB = (1<<9),
USE_REVERSE_THRUST_GUIDED = (1<<10),
};
#endif // _DEFINES_H