diff options
| author | Thomas Haller <thaller@redhat.com> | 2016-02-12 14:44:52 +0100 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2016-02-12 15:36:01 +0100 |
| commit | 2c2d9d2e4cca422a53968cdcb6def420dd77961e (patch) | |
| tree | 3c05e45abdd2e3442f4b18123a1818b03c999871 /src/nm-logging.h | |
| parent | 97be12b6625e738856814403195b60f7ebc13bfe (diff) | |
| download | NetworkManager-2c2d9d2e4cca422a53968cdcb6def420dd77961e.tar.gz | |
build: cleanup default includes
- "gsystem-local-alloc.h" and <gio/gio.h> are already included via
"nm-default.h". No need to include them separately.
- include "nm-macros-internal.h" via "nm-default.h" and drop all
explict includes.
- in the modified files, ensure that we always include "config.h"
and "nm-default.h" first. As second, include the header file
for the current source file (if applicable). Then follow external
includes and finally internal nm includes.
- include nm headers inside source code files with quotes
- internal header files don't need to include default headers.
They can savely assume that "nm-default.h" is already included
and with it glib, nm-glib.h, nm-macros-internal.h, etc.
Diffstat (limited to 'src/nm-logging.h')
| -rw-r--r-- | src/nm-logging.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nm-logging.h b/src/nm-logging.h index b9ffdfc007..333f4f5a95 100644 --- a/src/nm-logging.h +++ b/src/nm-logging.h @@ -26,11 +26,6 @@ #error nm-test-utils.h must be included as last header #endif -#include "nm-logging.h" - -#include "nm-default.h" -#include "nm-macros-internal.h" - /* Log domains */ typedef enum { /*< skip >*/ LOGD_NONE = 0LL, |
