Add C++ guards
This commit is contained in:
@@ -46,6 +46,11 @@
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct RateLimit {
|
struct RateLimit {
|
||||||
//how many tickets we want
|
//how many tickets we want
|
||||||
long tickets;
|
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);
|
int uc_ratelimit_allow(struct RateLimit *r, long current_ts);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user