diff options
author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:07:32 -0300 |
---|---|---|
committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-04-22 18:07:32 -0300 |
commit | 5bba5c481d7273b475a39eb61e5eacec65d3c8e5 (patch) | |
tree | 514a1919f16464138651f925bb64eac3aa5cd7f9 /modules/devices/x86/x86_data.c | |
parent | 5f01c706267c595de92406a32e7f31ef5056c2d0 (diff) |
New upstream version 2.0.5preupstream/2.0.5pre
Diffstat (limited to 'modules/devices/x86/x86_data.c')
-rw-r--r-- | modules/devices/x86/x86_data.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/devices/x86/x86_data.c b/modules/devices/x86/x86_data.c index f56e8668..a2f8d7ca 100644 --- a/modules/devices/x86/x86_data.c +++ b/modules/devices/x86/x86_data.c @@ -330,7 +330,7 @@ void cpuflags_x86_init(void) gchar *flag_json = g_build_filename(g_get_user_config_dir(), "hardinfo2", "cpuflags.json", NULL); gboolean use_builtin_table = TRUE; - +#if JSON_CHECK_VERSION(0,20,0) if (!g_file_test(flag_json, G_FILE_TEST_EXISTS)) goto use_builtin_table; @@ -357,6 +357,7 @@ void cpuflags_x86_init(void) use_builtin_table_with_json: g_object_unref(parser); use_builtin_table: +#endif g_free(flag_json); if (use_builtin_table) |