Skip to content

Commit

Permalink
Merge remote-tracking branch 'core/engine-pu' into branch-20
Browse files Browse the repository at this point in the history
* core/engine-pu:
  Don't include stdbool.h when included from C++
  • Loading branch information
trondn committed Aug 12, 2011
2 parents fa613ad + bbafc07 commit 091c322
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion include/memcached/engine.h
Expand Up @@ -2,8 +2,11 @@
#ifndef MEMCACHED_ENGINE_H
#define MEMCACHED_ENGINE_H

#include <sys/types.h>
#ifndef __cplusplus
#include <stdbool.h>
#endif

#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>

Expand Down
3 changes: 3 additions & 0 deletions include/memcached/extension.h
Expand Up @@ -2,7 +2,10 @@
#ifndef MEMCACHED_EXTENSION_H
#define MEMCACHED_EXTENSION_H

#ifndef __cplusplus
#include <stdbool.h>
#endif

#include <stdint.h>
#include <memcached/engine_common.h>
#include <memcached/protocol_binary.h>
Expand Down
5 changes: 4 additions & 1 deletion include/memcached/types.h
Expand Up @@ -2,9 +2,12 @@
#define MEMCACHED_TYPES_H 1

#include <sys/types.h>
#include <stdbool.h>
#include <stdint.h>

#ifndef __cplusplus
#include <stdbool.h>
#endif

#ifdef __WIN32__
struct iovec {
size_t iov_len;
Expand Down

0 comments on commit 091c322

Please sign in to comment.