Fix #13: Support C-linkage for C++ compilation

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2019-05-24 21:57:57 +02:00
1 parent b15a14e920
commit 7f053f7624
8 files changed
+74

No files matched your search

+9
View File
@@ -15,6 +15,11 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef CONIO_H_
#define CONIO_H_
@@ -88,6 +93,10 @@ static inline void printheader(FILE *fp, const char *line, int nl)
#endif /* CONIO_H_ */
#ifdef __cplusplus
}
#endif
/**
* Local Variables:
* indent-tabs-mode: t
+9
View File
@@ -22,6 +22,11 @@
* THE SOFTWARE.
*/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef LITE_H_
#define LITE_H_
@@ -183,6 +188,10 @@ static inline int fisslashdir(const char *dir)
#endif /* LITE_H_ */
#ifdef __cplusplus
}
#endif
/**
* Local Variables:
* indent-tabs-mode: t
+9
View File
@@ -32,6 +32,11 @@
* @(#)queue.h 8.5 (Berkeley) 8/20/94
*/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef _SYS_QUEUE_H_
#define _SYS_QUEUE_H_
@@ -531,3 +536,7 @@ struct { \
} while (0)
#endif /* !_SYS_QUEUE_H_ */
#ifdef __cplusplus
}
#endif
+10
View File
@@ -23,6 +23,12 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
* ==========================================================================
*/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef LITE_STRDUPA_H
#define LITE_STRDUPA_H
@@ -50,3 +56,7 @@
#endif /* !HAVE_STRDUPA */
#endif /* LITE_STRDUPA_H */
#ifdef __cplusplus
}
#endif
+9
View File
@@ -21,6 +21,11 @@
* THE SOFTWARE.
*/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef LITE_STRING_H_
#define LITE_STRING_H_
@@ -106,3 +111,7 @@ static inline int string_case_compare(const char *a, const char *b)
}
#endif /* LITE_STRING_H_ */
#ifdef __cplusplus
}
#endif
+10
View File
@@ -23,6 +23,12 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
* ==========================================================================
*/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef LITE_STRNDUPA_H_
#define LITE_STRNDUPA_H_
@@ -51,3 +57,7 @@
#endif /* !HAVE_STRNDUPA */
#endif /* GNU_STRING_STRNDUPA_H */
#ifdef __cplusplus
}
#endif
+9
View File
@@ -15,6 +15,11 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef LITE_STRNLEN_H_
#define LITE_STRNLEN_H_
@@ -41,3 +46,7 @@ static inline size_t xstrnlen(const char *str, size_t lim)
#endif
#endif /* LITE_STRNLEN_H_ */
#ifdef __cplusplus
}
#endif
+9
View File
@@ -24,6 +24,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifdef __cplusplus
extern "C"
{
#endif
#ifndef _SYS_TREE_H_
#define _SYS_TREE_H_
@@ -746,3 +751,7 @@ name##_RB_MINMAX(struct name *head, int val) \
(x) = (y))
#endif /* _SYS_TREE_H_ */
#ifdef __cplusplus
}
#endif