headers: move __cplusplus ifdefs to the beginning of the file
Make sure further include statements are inside the ifdef. Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
dacee403af
commit
a8e3cadc3c
|
@ -7,8 +7,6 @@
|
|||
#ifndef _LIBDECT_DECT_LCE_H
|
||||
#define _LIBDECT_DECT_LCE_H
|
||||
|
||||
#include <dect/ie.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -18,6 +16,8 @@ extern "C" {
|
|||
* @{
|
||||
*/
|
||||
|
||||
#include <dect/ie.h>
|
||||
|
||||
struct dect_lce_page_param {
|
||||
struct dect_ie_collection common;
|
||||
struct dect_ie_portable_identity *portable_identity;
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
#ifndef _LIBDECT_DECT_LIBDECT_H
|
||||
#define _LIBDECT_DECT_LIBDECT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
@ -22,10 +26,6 @@
|
|||
#include <dect/debug.h>
|
||||
#include <list.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct dect_handle;
|
||||
|
||||
/**
|
||||
|
|
Reference in New Issue