Skip to content
Browse files

Merge pull request #1 from derphilipp/master

Make it usable with C++
  • Loading branch information...
2 parents 1d696d3 + 82341dd commit 1fe73c31d77e6638e082d25cf515b431dbbe85e1 @jverkoey jverkoey committed Aug 8, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 fmemopen.h
View
9 fmemopen.h
@@ -18,6 +18,11 @@
#ifndef FMEMOPEN_H_
#define FMEMOPEN_H_
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
/**
* A BSD port of the fmemopen Linux method using funopen.
*
@@ -40,4 +45,8 @@
*/
FILE *fmemopen(void *buf, size_t size, const char *mode);
+#ifdef __cplusplus
+}
+#endif
+
#endif // #ifndef FMEMOPEN_H_

0 comments on commit 1fe73c3

Please sign in to comment.
Something went wrong with that request. Please try again.