summaryrefslogtreecommitdiff
path: root/include/libmnl
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-11-15 20:38:05 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2010-11-15 20:38:05 +0100
commitbb8c40e9ef7cb39edd144067d65378c49b837205 (patch)
tree570c627963bae673d8e8ce09cd90da87e0c0305c /include/libmnl
parent37dac00e2ad6445f496e68fcf815723432ecb5a8 (diff)
downloadlibmnl-bb8c40e9ef7cb39edd144067d65378c49b837205.tar.gz
libmnl-bb8c40e9ef7cb39edd144067d65378c49b837205.zip
include: use C++ headers in C++ mode
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libmnl')
-rw-r--r--include/libmnl/libmnl.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index d2fc2d4..a194185 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -1,13 +1,16 @@
#ifndef _LIBMNL_H_
#define _LIBMNL_H_
-#include <stdio.h>
-#include <stdint.h>
+#ifdef __cplusplus
+# include <cstdio>
+# include <cstdint>
+#else
+# include <stdbool.h> /* not in C++ */
+# include <stdio.h>
+# include <stdint.h>
+#endif
#include <sys/socket.h> /* for sa_family_t */
#include <linux/netlink.h>
-#ifndef __cplusplus
-# include <stdbool.h>
-#endif
#ifdef __cplusplus
extern "C" {