Skip to content

Commit

Permalink
add Windows experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
AllinCottrell committed Feb 15, 2024
1 parent 4a9b288 commit b43e697
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/src/graphing.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,25 @@ int gnuplot_test_command (const char *cmd)

#ifdef G_OS_WIN32

/* FIXME */
static void gpver_test (void)
{
gchar *cmdline;
char *sout = NULL;
int err;

cmdline = g_strdup_printf("\"%s\" --version", gretl_gnuplot_path());
err = gretl_win32_grab_stdout(cmdline, NULL, &sout);
fprintf(stderr, "gpver_test: err = %d, sout = '%s'\n", err, sout);
free(sout);
g_free(cmdline);
}

double gnuplot_version (void)
{
/* As of October 2022, the gretl packages for MS Windows
include gnuplot 5.2.6 (32-bit) or 5.4.1 (64-bit).
*/
gpver_test();
# if defined(_WIN64)
return 5.4;
# else
Expand Down

0 comments on commit b43e697

Please sign in to comment.