diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-07-15 17:45:32 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-07-16 11:21:26 +0200 |
commit | 5b8a0c7479776f7781e497dd5fdacc17d9aad0ae (patch) | |
tree | 5e0391407fad9fa357f5be2a40d7f8ccb8daf4ab /include/libmnl | |
parent | 857c683b5cabe5933650a164146fdeaecfda565b (diff) | |
download | libmnl-5b8a0c7479776f7781e497dd5fdacc17d9aad0ae.tar.gz libmnl-5b8a0c7479776f7781e497dd5fdacc17d9aad0ae.zip |
include: don't force compiler to enter C++11 mode
Thomas reports that g++ forces you to enable C++11 mode if
you want to use <cstdint>. Tested with g++ (GCC) 4.4.4. He
reports that this compiles fine without the special headers.
So let's get rid of them. This reverts bb8c40e.
Reported-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Tested-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Diffstat (limited to 'include/libmnl')
-rw-r--r-- | include/libmnl/libmnl.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index a647fd9..223709c 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -1,14 +1,9 @@ #ifndef _LIBMNL_H_ #define _LIBMNL_H_ -#ifdef __cplusplus -# include <cstdio> -# include <cstdint> -#else -# include <stdbool.h> /* not in C++ */ -# include <stdio.h> -# include <stdint.h> -#endif +#include <stdbool.h> +#include <stdio.h> +#include <stdint.h> #include <unistd.h> #include <sys/socket.h> /* for sa_family_t */ #include <linux/netlink.h> |