mesa: Fix gcc assembly enable logic.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 14 Apr 2009 20:27:58 +0000 (21:27 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 14 Apr 2009 20:43:10 +0000 (21:43 +0100)
The i386 symbol is defined on WINDDK.

src/mesa/state_tracker/st_cb_texture.c

index 57c0544ba8b2112a2f24668769d224136a9573ef..1f14b3705d500293eda0f8024edb3502bf0172e0 100644 (file)
@@ -169,7 +169,7 @@ st_FreeTextureImageData(GLcontext * ctx, struct gl_texture_image *texImage)
  * than COPY_DWORDS would:
  * XXX Put this in src/mesa/main/imports.h ???
  */
-#if defined(i386) || defined(__i386__)
+#if defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86)
 static INLINE void *
 __memcpy(void *to, const void *from, size_t n)
 {