mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
Make gcc inline assembly conditional on gcc
This commit is contained in:
parent
4452672001
commit
b0889cf2a1
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ static
|
||||||
void
|
void
|
||||||
read_tsc (gint64 * dst)
|
read_tsc (gint64 * dst)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_RDTSC
|
#if defined(HAVE_RDTSC) && defined(__GNUC__)
|
||||||
guint64 tsc;
|
guint64 tsc;
|
||||||
__asm__ __volatile__ ("rdtsc":"=A" (tsc));
|
__asm__ __volatile__ ("rdtsc":"=A" (tsc));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue