Make gcc inline assembly conditional on gcc

This commit is contained in:
David Schleef 2009-12-01 18:09:04 -08:00
parent 4452672001
commit b0889cf2a1

View file

@ -74,7 +74,7 @@ static
void
read_tsc (gint64 * dst)
{
#ifdef HAVE_RDTSC
#if defined(HAVE_RDTSC) && defined(__GNUC__)
guint64 tsc;
__asm__ __volatile__ ("rdtsc":"=A" (tsc));