summaryrefslogtreecommitdiff
path: root/src/UriMemory.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2019-04-26 17:57:49 +0200
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2019-04-26 17:57:49 +0200
commit1920f1b489a54e8ab97a3e24b1bab64831e32b53 (patch)
tree1cdcec7df7eafec396d29e94bc35554c210fb8db /src/UriMemory.h
parent63b80068976fbc5460c284aef0e6560abcf13e68 (diff)
New upstream version 0.9.2upstream/0.9.2
Diffstat (limited to 'src/UriMemory.h')
-rw-r--r--src/UriMemory.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/UriMemory.h b/src/UriMemory.h
index c40c072..86bf405 100644
--- a/src/UriMemory.h
+++ b/src/UriMemory.h
@@ -37,6 +37,11 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef URI_MEMORY_H
+#define URI_MEMORY_H 1
+
+
+
#ifndef URI_DOXYGEN
# include <uriparser/Uri.h>
#endif
@@ -54,6 +59,20 @@
-extern UriMemoryManager defaultMemoryManager;
+#ifdef __cplusplus
+# define URIPARSER_EXTERN extern "C"
+#else
+# define URIPARSER_EXTERN extern
+#endif
+
+URIPARSER_EXTERN UriMemoryManager defaultMemoryManager;
+
+#undef URIPARSER_EXTERN
+
+
UriBool uriMemoryManagerIsComplete(const UriMemoryManager * memory);
+
+
+
+#endif /* URI_MEMORY_H */