Skip to content

Commit

Permalink
set attribute only for x86
Browse files Browse the repository at this point in the history
  • Loading branch information
clamchowder committed Jan 22, 2024
1 parent 0674f06 commit 192f829
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mt_instructionrate/mt_instructionrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
#include <pthread.h>
#include <unistd.h>
#include <sys/syscall.h>
#ifdef __x86_64
#define SMALLKITTEN __attribute__((ms_abi))
#else
#define SMALLKITTEN
#endif
#define gettid() ((pid_t)syscall(SYS_gettid))
#else
#include <Windows.h>
Expand Down

0 comments on commit 192f829

Please sign in to comment.