gst/gstcpu.c (gst_cpuid_i386): Protect some gcc asm stuff with __GNUC__, patch from Brian Cameron, fixes bug #142804

Original commit message from CVS:
* gst/gstcpu.c (gst_cpuid_i386): Protect some gcc asm stuff with
__GNUC__, patch from Brian Cameron, fixes bug #142804
This commit is contained in:
Johan Dahlin 2004-05-21 14:48:04 +00:00
parent f1a2a8fe87
commit 9afd2f70ab
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-05-21 Johan Dahlin <johan@gnome.org>
* gst/gstcpu.c (gst_cpuid_i386): Protect some gcc asm stuff with
__GNUC__, patch from Brian Cameron, fixes bug #142804
2004-05-20 David Schleef <ds@schleef.org> 2004-05-20 David Schleef <ds@schleef.org>
* gst/gstindex.c: (gst_index_compare_func): Fix overflows in * gst/gstindex.c: (gst_index_compare_func): Fix overflows in

View file

@ -30,7 +30,7 @@
static guint32 _gst_cpu_flags = 0; static guint32 _gst_cpu_flags = 0;
#ifdef HAVE_CPU_I386 #if defined(HAVE_CPU_I386) && defined(__GNUC__)
#define _gst_cpu_initialize_arch _gst_cpu_initialize_i386 #define _gst_cpu_initialize_arch _gst_cpu_initialize_i386
gboolean _gst_cpu_initialize_i386 (gulong * flags, GString * featurelist); gboolean _gst_cpu_initialize_i386 (gulong * flags, GString * featurelist);
#else #else
@ -62,7 +62,7 @@ _gst_cpu_initialize_none (gulong * flags, GString * featurelist)
return FALSE; return FALSE;
} }
#ifdef HAVE_CPU_I386 #if defined(HAVE_CPU_I386) && defined(__GNUC__)
static void static void
gst_cpuid_i386 (int x, unsigned long *eax, unsigned long *ebx, gst_cpuid_i386 (int x, unsigned long *eax, unsigned long *ebx,
unsigned long *ecx, unsigned long *edx) unsigned long *ecx, unsigned long *edx)