Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Get_cpu_info on platforms other than Windows?

From: Dirk Jagdmann <doj@xxxxxxxxx>
Date: Wed, 06 Feb 2013 10:02:09 -0800
On 06.02.2013 05:13, Anders Broman wrote:
Hi,
The included patch works on Ubuntu 64 bits but I guess it needs to be protected
with more #if defined on say OSX ppc?

#if defined(__i386__) || defined(__x86_64__)
#if defined(_MSC_VER)
// your windows version, compiled by a Microsoft compiler
#elif defined(__GCC__)
// your gcc version
#else
#error do_cpuid() not implemented for your compiler for the Intel processor
#endif

#elif defined(__ppc__) || defined(__powerpc64__)
#error do_cpuid() not implemented for the PowerPC

#else
#error unknown platform: do_cpuid() not implemented
#endif

--
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org