ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

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