diff options
author | Thomas Haller <thaller@redhat.com> | 2016-08-17 18:19:00 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-08-17 19:51:17 +0200 |
commit | 0bdcab100ca5fd86ec8ab0f9ccc3645b47835437 (patch) | |
tree | 50865418973a9ad98def8a7d3e2528e0c9ff98f3 /src/devices/nm-device-veth.h | |
parent | 40d5749ec1c9d9aed746115dcf50d9bf1fbad131 (diff) | |
download | NetworkManager-0bdcab100ca5fd86ec8ab0f9ccc3645b47835437.tar.gz |
all: cleanup includes in header files
- don't include "nm-default.h" in header files. Every source file must
include as first header "nm-default.h", thus our headers get the
default include already implicitly.
- we don't support compiling NetworkManager itself with a C++ compiler. Remove
G_BEGIN_DECLS/G_END_DECLS from internal headers. We do however support
users of libnm to use C++, thus they stay in public headers.
(cherry picked from commit f19aff89095ca192b8b2e37534b7a899aecd82f9)
Diffstat (limited to 'src/devices/nm-device-veth.h')
-rw-r--r-- | src/devices/nm-device-veth.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/devices/nm-device-veth.h b/src/devices/nm-device-veth.h index 3ba5af6939..53ccf9253d 100644 --- a/src/devices/nm-device-veth.h +++ b/src/devices/nm-device-veth.h @@ -23,8 +23,6 @@ #include "nm-device-ethernet.h" -G_BEGIN_DECLS - #define NM_TYPE_DEVICE_VETH (nm_device_veth_get_type ()) #define NM_DEVICE_VETH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DEVICE_VETH, NMDeviceVeth)) #define NM_DEVICE_VETH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_DEVICE_VETH, NMDeviceVethClass)) @@ -39,6 +37,4 @@ typedef struct _NMDeviceVethClass NMDeviceVethClass; GType nm_device_veth_get_type (void); -G_END_DECLS - -#endif /* NM_DEVICE_VETH_H */ +#endif /* __NETWORKMANAGER_DEVICE_VETH_H__ */ |