# This file is part of the YAZ toolkit
-# Copyright (c) Index Data 1996-2006
+# Copyright (c) Index Data 1996-2013
# See the file LICENSE for details.
#
-# $Id: csvtodiag.tcl,v 1.3 2006-04-20 20:50:51 adam Exp $
#
# Converts a CSV file with diagnostics to C+H file for easy
# maintenance
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]\"