Browse Source

AP_Vehicle: replace header guard with pragma once

mission-4.1.18
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
80749af698
  1. 6
      libraries/AP_Vehicle/AP_Vehicle.h
  2. 5
      libraries/AP_Vehicle/AP_Vehicle_Type.h

6
libraries/AP_Vehicle/AP_Vehicle.h

@ -12,8 +12,8 @@ @@ -12,8 +12,8 @@
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 AP_VEHICLE_H
#define AP_VEHICLE_H
#pragma once
/*
this header holds a parameter structure for each vehicle type for
parameters needed by multiple libraries
@ -54,5 +54,3 @@ public: @@ -54,5 +54,3 @@ public:
#include "AP_Vehicle_Type.h"
#endif // AP_VEHICLE_H

5
libraries/AP_Vehicle/AP_Vehicle_Type.h

@ -12,8 +12,7 @@ @@ -12,8 +12,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 AP_VEHICLE_TYPE_H
#define AP_VEHICLE_TYPE_H
#pragma once
/*
define common vehicle build types. Note that the APM_BUILD_DIRECTORY
@ -38,5 +37,3 @@ @@ -38,5 +37,3 @@
#else
#define APM_BUILD_TYPE(type) ((type) == APM_BUILD_UNKNOWN)
#endif
#endif // AP_VEHICLE_TYPE_H

Loading…
Cancel
Save