From f5c167f523682cb08109842ce010b29e80fdf63d Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 13 Jan 2010 14:44:59 -0800 Subject: [PATCH] Protected stdbool.h from being included by C++, which is invalid on Sun Studio. --- clients/ms_memslap.h | 4 +++- clients/ms_task.h | 4 +++- libmemcached/protocol/common.h | 4 +++- libmemcached/protocol_handler.h | 4 +++- tests/test.h | 5 ++++- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/clients/ms_memslap.h b/clients/ms_memslap.h index 51023d9d..87caca5d 100644 --- a/clients/ms_memslap.h +++ b/clients/ms_memslap.h @@ -19,7 +19,9 @@ #include #include #include -#include +#if !defined(__cplusplus) +# include +#endif #include #include "ms_stats.h" diff --git a/clients/ms_task.h b/clients/ms_task.h index 610f3bc5..c4917d11 100644 --- a/clients/ms_task.h +++ b/clients/ms_task.h @@ -13,7 +13,9 @@ #include #include -#include +#if !defined(__cplusplus) +# include +#endif #include #ifdef __cplusplus diff --git a/libmemcached/protocol/common.h b/libmemcached/protocol/common.h index 48782a0c..1d29798c 100644 --- a/libmemcached/protocol/common.h +++ b/libmemcached/protocol/common.h @@ -3,7 +3,9 @@ #define LIBMEMCACHED_PROTOCOL_COMMON_H #include "config.h" -#include +#if !defined(__cplusplus) +# include +#endif #include #include diff --git a/libmemcached/protocol_handler.h b/libmemcached/protocol_handler.h index 3fb00c98..3e4531bb 100644 --- a/libmemcached/protocol_handler.h +++ b/libmemcached/protocol_handler.h @@ -15,7 +15,9 @@ #define MEMCACHED_PROTOCOL_H #include -#include +#if !defined(__cplusplus) +# include +#endif #include #include diff --git a/tests/test.h b/tests/test.h index fc10c8d5..cf190572 100644 --- a/tests/test.h +++ b/tests/test.h @@ -16,9 +16,12 @@ extern "C" { #include #include -#include #include +#if !defined(__cplusplus) +# include +#endif + typedef struct world_st world_st; typedef struct collection_st collection_st; typedef struct test_st test_st; -- 2.30.2