From a503bc74f2c8a5084833856a72b1bc3c491eb760 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 17 Feb 2016 23:25:58 -0200 Subject: [PATCH] AntennaTracker: replace header guard with pragma once --- AntennaTracker/Parameters.h | 6 +----- AntennaTracker/config.h | 2 ++ AntennaTracker/defines.h | 7 +------ 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/AntennaTracker/Parameters.h b/AntennaTracker/Parameters.h index d6351b9d57..276be0b874 100644 --- a/AntennaTracker/Parameters.h +++ b/AntennaTracker/Parameters.h @@ -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 @@ -163,5 +161,3 @@ public: }; extern const AP_Param::Info var_info[]; - -#endif // PARAMETERS_H diff --git a/AntennaTracker/config.h b/AntennaTracker/config.h index f1175099f9..30ef78e28f 100644 --- a/AntennaTracker/config.h +++ b/AntennaTracker/config.h @@ -1,5 +1,7 @@ // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- // +#pragma once + #include "defines.h" #include "APM_Config.h" // <== THIS INCLUDE, DO NOT EDIT IT. EVER. diff --git a/AntennaTracker/defines.h b/AntennaTracker/defines.h index 291f79f2a9..23bd462510 100644 --- a/AntennaTracker/defines.h +++ b/AntennaTracker/defines.h @@ -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 // Command/Waypoint/Location Options Bitmask //-------------------- @@ -34,6 +32,3 @@ enum ServoType { #define MASK_LOG_RCOUT (1<<4) #define MASK_LOG_COMPASS (1<<5) #define MASK_LOG_ANY 0xFFFF - -#endif // _DEFINES_H -