diff th_util.h @ 49:598609fb49b0

Change how "config.h" is included, etc.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 03 Oct 2011 15:40:54 +0300
parents e031a062b731
children 2c90b33d3617
line wrap: on
line diff
--- a/th_util.h	Mon Oct 03 15:39:42 2011 +0300
+++ b/th_util.h	Mon Oct 03 15:40:54 2011 +0300
@@ -5,11 +5,11 @@
  *
  * Please read file 'COPYING' for information on license and distribution.
  */
-#ifndef _TH_UTIL_H
-#define _TH_UTIL_H
+#ifndef TH_UTIL_H
+#define TH_UTIL_H
 
-#ifdef __cplusplus
-extern "C" {
+#ifdef HAVE_CONFIG_H
+#include "config.h"
 #endif
 
 #include "th_types.h"
@@ -34,6 +34,9 @@
 #include <memory.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #ifdef TH_NO_DEFAULTS
 #define TH_PROG_AUTHOR      NULL
@@ -131,4 +134,4 @@
 #ifdef __cplusplus
 }
 #endif
-#endif /* _TH_UTIL_H */
+#endif /* TH_UTIL_H */