From d030e817d99a8e8f7bc0588452fea0ba5dac6266 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Tue, 11 Aug 2015 16:28:41 +1000 Subject: [PATCH] AC_Fence: 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/AC_Fence/AC_Fence.cpp | 4 ++-- libraries/AC_Fence/AC_Fence.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/AC_Fence/AC_Fence.cpp b/libraries/AC_Fence/AC_Fence.cpp index 9a751fe523..a4c166e51d 100644 --- a/libraries/AC_Fence/AC_Fence.cpp +++ b/libraries/AC_Fence/AC_Fence.cpp @@ -1,6 +1,6 @@ /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- -#include -#include +#include +#include "AC_Fence.h" extern const AP_HAL::HAL& hal; diff --git a/libraries/AC_Fence/AC_Fence.h b/libraries/AC_Fence/AC_Fence.h index 14fac07ade..5a3330e80d 100644 --- a/libraries/AC_Fence/AC_Fence.h +++ b/libraries/AC_Fence/AC_Fence.h @@ -3,10 +3,10 @@ #define AC_FENCE_H #include -#include -#include -#include -#include // Inertial Navigation library +#include +#include +#include +#include // Inertial Navigation library // bit masks for enabled fence types. Used for TYPE parameter #define AC_FENCE_TYPE_NONE 0 // fence disabled