@@ -1,7 +1,11 @@
#ifndef _CHAIN_H_
#define _CHAIN_H_
-#include <stdint.h>
+#if defined(__cplusplus) && __cplusplus >= 201100L
+# include <cstdint>
+#else
+# include <stdint.h>
+#endif
#ifndef __cplusplus
# include <stdbool.h>
#endif
@@ -1,7 +1,11 @@
#ifndef _RULE_EXPR_H_
#define _RULE_EXPR_H_
-#include <stdint.h>
+#if defined(__cplusplus) && __cplusplus >= 201100L
+# include <cstdint>
+#else
+# include <stdint.h>
+#endif
#ifndef __cplusplus
# include <stdbool.h>
#endif
@@ -1,7 +1,11 @@
#ifndef _RULE_H_
#define _RULE_H_
-#include <stdint.h>
+#if defined(__cplusplus) && __cplusplus >= 201100L
+# include <cstdint>
+#else
+# include <stdint.h>
+#endif
#ifndef __cplusplus
# include <stdbool.h>
#endif
@@ -4,7 +4,11 @@
#ifndef __cplusplus
# include <stdbool.h>
#endif
-#include <stdint.h>
+#if defined(__cplusplus) && __cplusplus >= 201100L
+# include <cstdint>
+#else
+# include <stdint.h>
+#endif
#include <sys/types.h>
#ifdef __cplusplus
@@ -1,7 +1,11 @@
#ifndef _NFT_SET_H_
#define _NFT_SET_H_
-#include <stdint.h>
+#if defined(__cplusplus) && __cplusplus >= 201100L
+# include <cstdint>
+#else
+# include <stdint.h>
+#endif
#ifndef __cplusplus
# include <stdbool.h>
#endif
@@ -1,7 +1,11 @@
#ifndef _TABLE_H_
#define _TABLE_H_
-#include <stdint.h>
+#if defined(__cplusplus) && __cplusplus >= 201100L
+# include <cstdint>
+#else
+# include <stdint.h>
+#endif
#ifndef __cplusplus
# include <stdbool.h>
#endif
Signed-off-by: Jan Engelhardt <jengelh@inai.de> --- include/libnftables/chain.h | 6 +++++- include/libnftables/expr.h | 6 +++++- include/libnftables/rule.h | 6 +++++- include/libnftables/ruleset.h | 6 +++++- include/libnftables/set.h | 6 +++++- include/libnftables/table.h | 6 +++++- 6 files changed, 30 insertions(+), 6 deletions(-)