Skip to content

Commit

Permalink
Build fix for macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlutas committed May 7, 2024
1 parent 173e2e2 commit 1fa6505
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion disasmtool/disasmtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ nd_memset(void *s, int c, size_t n)
#ifdef WIN32
#define cpuid __cpuid
#else
#define _stricmp strcasecmp
#define __rdtsc __builtin_ia32_rdtsc

void cpuid(int cpuInfo[4], int function_id)
Expand All @@ -89,6 +88,9 @@ void cpuid(int cpuInfo[4], int function_id)
#endif // WIN32
#endif // defined(ND_ARCH_X64) || defined(ND_ARCH_X86)

#ifndef WIN32
#define _stricmp strcasecmp
#endif

#define FG_Black "\033[1;30m"
#define FG_Red "\033[1;31m"
Expand Down

0 comments on commit 1fa6505

Please sign in to comment.