Skip to content

Commit

Permalink
Use '__linux__' for checking if compiling on Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Van Eenwyk <[email protected]>
  • Loading branch information
joelvaneenwyk committed Jul 9, 2024
1 parent f83f368 commit 03de0bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Src/PEEL/Ice/APIs/Ice/IceCore/IceProfiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
sub eax, cyc
mov Base, eax
}
#elif defined(LINUX)
#elif defined(__linux__)
//__asm__("cpuid\n\t"
// "rdtsc\n\t"
// "mov %0, eax\n\t"
Expand Down Expand Up @@ -125,7 +125,7 @@
mov ebx, val
mov [ebx], eax
}
#elif defined(LINUX)
#elif defined(__linux__)
//asm("cpuid\n\t"
// "rdtsc\n\t"
// "mov ebx, val\n\t"
Expand All @@ -151,7 +151,7 @@
sub eax, [ebx]
mov [ebx], eax
}
#elif defined(LINUX)
#elif defined(__linux__)
//asm("cpuid\n\t"
// "rdtsc\n\t"
// "mov ebx, val\n\t"
Expand Down

0 comments on commit 03de0bb

Please sign in to comment.