ArduCopter: 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 dd8014dd2f
commit e88ba38595
4 changed files with 5 additions and 20 deletions

View File

@ -1,7 +1,5 @@
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef _COPTER_H
#define _COPTER_H
#pragma once
#define THISFIRMWARE "APM:Copter V3.4-dev"
#define FIRMWARE_VERSION 3,4,0,FIRMWARE_VERSION_TYPE_DEV
@ -1068,5 +1066,3 @@ extern Copter copter;
using AP_HAL::millis;
using AP_HAL::micros;
#endif // _COPTER_H_

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>
@ -589,6 +587,3 @@ public:
};
extern const AP_Param::Info var_info[];
#endif // PARAMETERS_H

View File

@ -1,7 +1,7 @@
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
//
#ifndef __ARDUCOPTER_CONFIG_H__
#define __ARDUCOPTER_CONFIG_H__
#pragma once
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
@ -769,5 +769,3 @@
#else
#define FIRMWARE_STRING THISFIRMWARE " (" GIT_VERSION ")"
#endif
#endif // __ARDUCOPTER_CONFIG_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
#include <AP_HAL/AP_HAL_Boards.h>
@ -436,5 +434,3 @@ enum ThrowModeState {
// for PILOT_THR_BHV parameter
#define THR_BEHAVE_FEEDBACK_FROM_MID_STICK (1<<0)
#define THR_BEHAVE_HIGH_THROTTLE_CANCELS_LAND (1<<1)
#endif // _DEFINES_H