Skip to content

Commit

Permalink
Fix version.h work with C++
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmoreno committed Aug 26, 2019
1 parent b853659 commit e2b254f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/onion/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@

#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

/// current running onion version as a string
const char *onion_version();
/// current running onion major version
Expand All @@ -71,5 +75,8 @@ bool onion_version_is_compatible3(int major, int minor, int patch);
abort(); \
} }

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit e2b254f

Please sign in to comment.