Skip to content

Commit

Permalink
C++: add linkage qualifier for C++
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaandegroot committed Jun 23, 2017
1 parent 492c60d commit 4b8a3ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/quick-der/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
# define EBADMSG EBADF
#endif

#ifdef __cplusplus
extern "C" {
#endif

/* Most of BER is included with these routines as well, but not the
* indefinate-length method. Also, there is no support for application,
Expand Down Expand Up @@ -686,4 +689,8 @@ int der_get_uint32 (dercursor cursor, uint32_t *valp);
*/
int der_cmp(dercursor c1, dercursor c2);

#ifdef __cplusplus
}
#endif

#endif /* QUICK_DER_H */

0 comments on commit 4b8a3ba

Please sign in to comment.