summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-09-15 01:04:28 +0530
committerMukund Sivaraman <muks@banu.com>2009-09-15 01:04:28 +0530
commit2cb677759236fe54c24c1ce099a61f54bace3f73 (patch)
tree3e7a429f447a344afe4bda217c4b4c3b24759518
parent26b95f7b8188f027e27b27be150e14e473f4a91c (diff)
downloadtinyproxy-2cb677759236fe54c24c1ce099a61f54bace3f73.tar.gz
tinyproxy-2cb677759236fe54c24c1ce099a61f54bace3f73.zip
Remove C++ wrapper from headers
These are not necessary as Tinyproxy is pure C code, and only to be used within Tinyproxy. It is not a library.
-rw-r--r--src/hashmap.h9
-rw-r--r--src/vector.h9
2 files changed, 0 insertions, 18 deletions
diff --git a/src/hashmap.h b/src/hashmap.h
index 9563277..e317f08 100644
--- a/src/hashmap.h
+++ b/src/hashmap.h
@@ -21,12 +21,6 @@
#ifndef _HASHMAP_H
#define _HASHMAP_H
-/* Allow the use in C++ code. */
-#if defined(__cplusplus)
-extern "C"
-{
-#endif
-
/*
* We're using a typedef here to "hide" the implementation details of the
* hash map. Sure, it's a pointer, but the struct is hidden in the C file.
@@ -121,7 +115,4 @@ extern "C"
*/
extern ssize_t hashmap_remove (hashmap_t map, const char *key);
-#if defined(__cplusplus)
-}
-#endif /* C++ */
#endif /* _HASHMAP_H */
diff --git a/src/vector.h b/src/vector.h
index 0a096f0..cdba376 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -21,12 +21,6 @@
#ifndef _VECTOR_H
#define _VECTOR_H
-/* Allow the use in C++ code. */
-#if defined(__cplusplus)
-extern "C"
-{
-#endif
-
/*
* We're using a typedef here to "hide" the implementation details of the
* vector. Sure, it's a pointer, but the struct is hidden in the C file.
@@ -78,7 +72,4 @@ extern "C"
*/
extern ssize_t vector_length (vector_t vector);
-#if defined(__cplusplus)
-}
-#endif /* C++ */
#endif /* _VECTOR_H */