Permalink
Browse files

work with c++

  • Loading branch information...
1 parent 903187d commit c2d0ac6833cec3b9fcc54cab7cb3f69bc5f2379b @tokuhirom tokuhirom committed Oct 8, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 picohttpparser.h
View
@@ -1,6 +1,10 @@
#ifndef picohttpparser_h
#define picohttpparser_h
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* contains name and value of a header (name == NULL if is a continuing line
* of a multiline header */
struct phr_header {
@@ -24,4 +28,8 @@ int phr_parse_response(const char* _buf, size_t len, int *minor_version,
struct phr_header* headers, size_t* num_headers,
size_t last_len);
+#ifdef __cplusplus
+}
+#endif
+
#endif

0 comments on commit c2d0ac6

Please sign in to comment.