- Fixed bug #4344 - Fixed C++ problems in headers - Released 1.8.1 Daniel
- Fixed bug #4344
- Fixed C++ problems in headers
- Released 1.8.1
Daniel
diff --git a/nanohttp.h b/nanohttp.h
index 8551156..7b2fd3d 100644
--- a/nanohttp.h
+++ b/nanohttp.h
@@ -8,6 +8,9 @@
#ifndef __NANO_HTTP_H__
#define __NANO_HTTP_H__
+#ifdef __cplusplus
+#define extern "C" {
+#endif
int xmlNanoHTTPFetch (const char *URL,
const char *filename,
char **contentType);
@@ -25,4 +28,7 @@
int xmlNanoHTTPSave (void *ctxt,
const char *filename);
void xmlNanoHTTPClose (void *ctx);
+#ifdef __cplusplus
+}
+#endif
#endif /* __NANO_HTTP_H__ */