From 9c440723e8d1b084bb04b61feda319965b82989d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Thu, 14 Nov 2013 13:30:21 +0100 Subject: [PATCH] Add C++ guards --- include/ucore/rate_limit.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/ucore/rate_limit.h b/include/ucore/rate_limit.h index fedfd55..7d39755 100644 --- a/include/ucore/rate_limit.h +++ b/include/ucore/rate_limit.h @@ -46,6 +46,11 @@ * } * } */ + +#ifdef __cplusplus +extern "C" { +#endif + struct RateLimit { //how many tickets we want long tickets; @@ -102,5 +107,9 @@ void uc_ratelimit_reset(struct RateLimit *r, long current_ts); */ int uc_ratelimit_allow(struct RateLimit *r, long current_ts); +#ifdef __cplusplus +} +#endif + #endif