]> sigrok.org Git - libsigrok.git/blobdiff - src/output/csv.c
Consistently use SR_PACKAGE_VERSION instead of VERSION
[libsigrok.git] / src / output / csv.c
index 5f0d647c3d5605be98cc1c883b85be2a29b377ef..d3f9966497bebabf722d309d3a705030570f48b0 100644 (file)
@@ -21,8 +21,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <glib.h>
-#include "config.h" /* Needed for PACKAGE_STRING and others. */
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "output/csv"
@@ -118,8 +117,8 @@ static GString *gen_header(const struct sr_output *o)
 
        /* Some metadata */
        t = time(NULL);
-       g_string_append_printf(header, "; CSV, generated by %s on %s",
-                       PACKAGE_STRING, ctime(&t));
+       g_string_append_printf(header, "; CSV, generated by %s %s on %s",
+                       PACKAGE_NAME, SR_PACKAGE_VERSION_STRING, ctime(&t));
 
        /* Columns / channels */
        num_channels = g_slist_length(o->sdi->channels);