From 831286df3001e6b76b7baeb10a7723841ab8b35e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 9 Mar 2017 13:02:20 +0100 Subject: include: use double-quotes to include our own headers In practice, this should only matter when there are multiple header files with the same name. That is something we try to avoid already, by giving headers a distinct name. When building NetworkManager itself, we clearly want to use double-quotes for including our own headers. But we also want to do that in our public headers. For example: ./a.c #include #include void main() { printf ("INCLUDED %s/nm-2.h\n", SYMB); } ./1/nm-1.h #include ./1/nm-2.h #define SYMB "1" ./2/nm-2.h #define SYMB "2" $ cc -I./2 -I./1 ./a.c $ ./a.out INCLUDED 2/nm-2.h Exceptions to this are - headers in "shared/nm-utils" that include . These headers are copied into projects and hence used like headers owned by those projects. - examples/C --- libnm-util/nm-setting-wireless.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libnm-util/nm-setting-wireless.h') diff --git a/libnm-util/nm-setting-wireless.h b/libnm-util/nm-setting-wireless.h index 77eff73e30..5a64f0a0f1 100644 --- a/libnm-util/nm-setting-wireless.h +++ b/libnm-util/nm-setting-wireless.h @@ -23,9 +23,9 @@ #ifndef NM_SETTING_WIRELESS_H #define NM_SETTING_WIRELESS_H -#include -#include -#include +#include "NetworkManager.h" +#include "nm-setting.h" +#include "nm-setting-wireless-security.h" G_BEGIN_DECLS -- cgit v1.2.1