APMrover2: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:59 -02:00 committed by Andrew Tridgell
parent a503bc74f2
commit dd8014dd2f
5 changed files with 5 additions and 22 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>
@ -322,6 +320,3 @@ public:
};
extern const AP_Param::Info var_info[];
#endif // PARAMETERS_H

View File

@ -16,9 +16,7 @@
/*
main Rover class, containing all vehicle specific state
*/
#ifndef _ROVER_H_
#define _ROVER_H_
#pragma once
#define THISFIRMWARE "ArduRover v2.51-beta"
#define FIRMWARE_VERSION 2,51,0,FIRMWARE_VERSION_TYPE_BETA
@ -564,5 +562,3 @@ extern Rover rover;
using AP_HAL::millis;
using AP_HAL::micros;
#endif // _ROVER_H_

View File

@ -1,9 +1,4 @@
#ifndef __COMPAT_H__
#define __COMPAT_H__
#pragma once
#define HIGH 1
#define LOW 0
#endif // __COMPAT_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
// -------------------------------------------------------
@ -126,5 +124,3 @@ enum mode {
// convert a boolean (0 or 1) to a sign for multiplying (0 maps to 1, 1 maps to -1)
#define BOOL_TO_SIGN(bvalue) ((bvalue)?-1:1)
#endif // _DEFINES_H