From b836f2aa417902412ff9d7aa3bb5ce52fd107baf Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Tue, 28 Jul 2020 22:32:31 -0700 Subject: Do not use "stdout" as a member in the struct Some libcs will define macros that redefine these tokens. --- modules/computer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/computer.c') diff --git a/modules/computer.c b/modules/computer.c index 9bb69f78..c0302a87 100644 --- a/modules/computer.c +++ b/modules/computer.c @@ -260,7 +260,7 @@ void scan_dev(gboolean reload) gchar *compiler_name; gchar *version_command; gchar *regex; - gboolean stdout; + gboolean read_stdout; } detect_lang[] = { { N_("Scripting Languages"), NULL, FALSE }, { N_("Gambas3 (gbr3)"), "gbr3 --version", "\\d+\\.\\d+\\.\\d+", TRUE }, @@ -318,7 +318,7 @@ void scan_dev(gboolean reload) continue; } - if (detect_lang[i].stdout) { + if (detect_lang[i].read_stdout) { found = hardinfo_spawn_command_line_sync(detect_lang[i].version_command, &output, &ignored, NULL, NULL); } else { found = hardinfo_spawn_command_line_sync(detect_lang[i].version_command, &ignored, &output, NULL, NULL); -- cgit v1.2.3