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.
This commit is contained in:
parent
26b95f7b81
commit
2cb6777592
@ -21,12 +21,6 @@
|
|||||||
#ifndef _HASHMAP_H
|
#ifndef _HASHMAP_H
|
||||||
#define _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
|
* 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.
|
* 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);
|
extern ssize_t hashmap_remove (hashmap_t map, const char *key);
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
}
|
|
||||||
#endif /* C++ */
|
|
||||||
#endif /* _HASHMAP_H */
|
#endif /* _HASHMAP_H */
|
||||||
|
@ -21,12 +21,6 @@
|
|||||||
#ifndef _VECTOR_H
|
#ifndef _VECTOR_H
|
||||||
#define _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
|
* 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.
|
* 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);
|
extern ssize_t vector_length (vector_t vector);
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
}
|
|
||||||
#endif /* C++ */
|
|
||||||
#endif /* _VECTOR_H */
|
#endif /* _VECTOR_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user