#ifndef INFO_MACOS_CPU #define INFO_MACOS_CPU #ifndef __APPLE__ #include #else typedef unsigned long long uint64_t; #endif typedef __SIZE_TYPE__ size_t; struct MacOsCpuCount { size_t core_count; size_t thread_count; }; int macos_cpu_name(char* buffer, size_t buffer_len); int macos_cpu_frequency(uint64_t* cpu_frequency); int macos_cpu_count(struct MacOsCpuCount* info); #endif