Add C++ guards

This commit is contained in:
Nils O. Selåsdal
2013-11-14 13:30:21 +01:00
parent 8fd26cd810
commit 9c440723e8
+9
View File
@@ -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