Happy new year
[yaz-moved-to-github.git] / src / csvtodiag.tcl
index e0df27e..ce1db5f 100644 (file)
@@ -2,7 +2,6 @@
 # Copyright (c) Index Data 1996-2007
 # See the file LICENSE for details.
 #
-# $Id: csvtodiag.tcl,v 1.4 2007-01-03 08:42:15 adam Exp $
 #
 # Converts a CSV file with diagnostics to C+H file for easy
 # maintenance
@@ -21,6 +20,10 @@ proc csvtodiag {ifiles name alias} {
     puts $hfile "/** \\file [lindex $ifiles 2]"
     set preamble "    \\brief Diagnostics: Generated by csvtodiag.tcl from [lindex $ifiles 0] */"
     puts $cfile $preamble
+    puts $cfile "\#ifdef HAVE_CONFIG_H"
+    puts $cfile "\#include <config.h>"
+    puts $cfile "\#endif"
+
     puts $cfile "
 #include \"diag-entry.h\"
 \#include \"[lindex $ifiles 2]\"