Mercurial > hg > th-libs
diff th_datastruct.h @ 459:7fca448847a3
Oops, fix C++ guards in headers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 17 Feb 2018 23:35:20 +0200 |
parents | 85fa3d333556 |
children | e4ce60239d16 |
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;