Skip to content

Commit

Permalink
kvs: Add extern "C" for C++ code
Browse files Browse the repository at this point in the history
Add extern "C" for C++ code.  Was missed from a recent PR
as mentioned in issue #1224.
  • Loading branch information
morrone committed Oct 9, 2017
1 parent 90d5a6b commit a5c7e6f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/common/libkvs/kvs.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#include "kvs_txn.h"
#include "kvs_commit.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Synchronization:
* Process A commits data, then gets the store version V and sends it to B.
* Process B waits for the store version to be >= V, then reads data.
Expand All @@ -24,6 +28,10 @@ int kvs_wait_version (flux_t *h, int version);
*/
int kvs_dropcache (flux_t *h);

#ifdef __cplusplus
}
#endif

#endif /* !_FLUX_CORE_KVS_H */

/*
Expand Down

0 comments on commit a5c7e6f

Please sign in to comment.