Commit 76459723 authored by Bastien Nocera's avatar Bastien Nocera

info: Make 64-bit detection work on all systems

Check the pointer size as defined by GLib.
parent 94aeba51
......@@ -234,11 +234,14 @@ static char *
get_os_type (void)
{
int bits;
#if defined(__x86_64__) || defined(_M_X64)
bits = 64;
#else
bits = 32;
#endif
if (GLIB_SIZEOF_VOID_P == 8)
bits = 64;
else
bits = 32;
/* translators: This is the type of architecture, for example:
* "64-bit" or "32-bit" */
return g_strdup_printf (_("%d-bit"), bits);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment