changeset 459:7fca448847a3

Oops, fix C++ guards in headers.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 17 Feb 2018 23:35:20 +0200
parents 694c85f4e354
children 0a1a65503e0b
files th_datastruct.h th_file.h
diffstat 2 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/th_datastruct.h	Fri Feb 16 22:21:01 2018 +0200
+++ b/th_datastruct.h	Sat Feb 17 23:35:20 2018 +0200
@@ -10,9 +10,8 @@
 
 #include "th_util.h"
 
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
+#ifdef __cplusplus
+extern "C" {
 #endif
 
 
@@ -20,9 +19,9 @@
  */
 typedef struct _th_llist_t
 {
-    void *data;  // Pointer to data payload of this node
     size_t num;  // Number of nodes in the list, meaningful ONLY in the current root node of the list
     struct _th_llist_t *prev, *next;
+    void *data;  // Pointer to data payload of this node
 } th_llist_t;
 
 
--- a/th_file.h	Fri Feb 16 22:21:01 2018 +0200
+++ b/th_file.h	Sat Feb 17 23:35:20 2018 +0200
@@ -10,12 +10,11 @@
 #ifndef TH_FILE_H
 #define TH_FILE_H
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
 #include "th_util.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 // Platform specific defines
 #if defined(TH_PLAT_WINDOWS)