From 6dd38079d6192b2cf5a41ab42c927c8e61c687ca Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Tue, 11 Aug 2015 16:28:45 +1000 Subject: [PATCH] AP_Rally: 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_Rally/AP_Rally.cpp | 2 +- libraries/AP_Rally/AP_Rally.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AP_Rally/AP_Rally.cpp b/libraries/AP_Rally/AP_Rally.cpp index 38936d77b8..5878e30c34 100644 --- a/libraries/AP_Rally/AP_Rally.cpp +++ b/libraries/AP_Rally/AP_Rally.cpp @@ -4,7 +4,7 @@ /// @brief Handles rally point storage and retrieval. #include "AP_Rally.h" -#include +#include extern const AP_HAL::HAL& hal; // storage object diff --git a/libraries/AP_Rally/AP_Rally.h b/libraries/AP_Rally/AP_Rally.h index 3ddcf4c4dc..30a4bf49cd 100644 --- a/libraries/AP_Rally/AP_Rally.h +++ b/libraries/AP_Rally/AP_Rally.h @@ -17,10 +17,10 @@ #ifndef AP_Rally_h #define AP_Rally_h -#include -#include -#include -#include <../StorageManager/StorageManager.h> +#include +#include +#include +#include #define AP_RALLY_WP_SIZE 15 // eeprom size of rally points