Browse Source

ArduCopter: replace header guard with pragma once

mission-4.1.18
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
e88ba38595
  1. 6
      ArduCopter/Copter.h
  2. 7
      ArduCopter/Parameters.h
  3. 6
      ArduCopter/config.h
  4. 6
      ArduCopter/defines.h

6
ArduCopter/Copter.h

@ -1,7 +1,5 @@ @@ -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; @@ -1068,5 +1066,3 @@ extern Copter copter;
using AP_HAL::millis;
using AP_HAL::micros;
#endif // _COPTER_H_

7
ArduCopter/Parameters.h

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

6
ArduCopter/config.h

@ -1,7 +1,7 @@ @@ -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 @@ @@ -769,5 +769,3 @@
#else
#define FIRMWARE_STRING THISFIRMWARE " (" GIT_VERSION ")"
#endif
#endif // __ARDUCOPTER_CONFIG_H__

6
ArduCopter/defines.h

@ -1,7 +1,5 @@ @@ -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 { @@ -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

Loading…
Cancel
Save