Added extern "C"

This commit is contained in:
Tatsuhiro Tsujikawa 2012-01-18 21:36:29 +09:00
parent 3d7bd0accb
commit f7f3472c98
1 changed files with 8 additions and 0 deletions

View File

@ -25,10 +25,18 @@
#ifndef SPDYLAY_H #ifndef SPDYLAY_H
#define SPDYLAY_H #define SPDYLAY_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h> #include <stdlib.h>
enum spdylay_error { enum spdylay_error {
SPDYLAY_ERR_NOMEM = -500 SPDYLAY_ERR_NOMEM = -500
}; };
#ifdef __cplusplus
}
#endif
#endif /* SPDYLAY_H */ #endif /* SPDYLAY_H */