From c7d86829697f8372d90a3885a5bcdad9d5406562 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Tue, 11 Aug 2015 16:28:45 +1000 Subject: [PATCH] AP_ServoRelayEvents: standardize inclusion of libaries headers This commit changes the way libraries headers are included in source files: - If the header is in the same directory the source belongs to, so the notation '#include ""' is used with the path relative to the directory containing the source. - If the header is outside the directory containing the source, then we use the notation '#include <>' with the path relative to libraries folder. Some of the advantages of such approach: - Only one search path for libraries headers. - OSs like Windows may have a better lookup time. --- libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp | 8 ++++---- libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp b/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp index 698e39625a..3915c4fa77 100644 --- a/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp +++ b/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.cpp @@ -18,10 +18,10 @@ */ -#include -#include -#include -#include +#include +#include +#include "AP_ServoRelayEvents.h" +#include extern const AP_HAL::HAL& hal; diff --git a/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.h b/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.h index d766242048..6b0c1201b9 100644 --- a/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.h +++ b/libraries/AP_ServoRelayEvents/AP_ServoRelayEvents.h @@ -10,8 +10,8 @@ #ifndef __AP_SERVORELAYEVENTS_H__ #define __AP_SERVORELAYEVENTS_H__ -#include -#include +#include +#include class AP_ServoRelayEvents { public: