# HG changeset patch # User Matti Hamalainen # Date 1518903320 -7200 # Node ID 7fca448847a325567a738caaad125a5c93bd5f97 # Parent 694c85f4e354532ca27e31827f03e873e1ebb4f9 Oops, fix C++ guards in headers. diff -r 694c85f4e354 -r 7fca448847a3 th_datastruct.h --- 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; diff -r 694c85f4e354 -r 7fca448847a3 th_file.h --- 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)