summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/rtasm
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-19 18:57:25 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-19 18:57:25 +0900
commit5480a6bc13a555f99a89fc801cfe153182697dda (patch)
tree60021b448477eaf564b52618e2c5913ade5638e6 /src/gallium/auxiliary/rtasm
parentb62f0ddd09f8ef9c400feca321412b3f0bc77e63 (diff)
Fix windows build.
Diffstat (limited to 'src/gallium/auxiliary/rtasm')
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_execmem.c3
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_x86sse.c2
-rw-r--r--src/gallium/auxiliary/rtasm/rtasm_x86sse.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/rtasm/rtasm_execmem.c b/src/gallium/auxiliary/rtasm/rtasm_execmem.c
index 9c78fa5626..300c1c2d9d 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_execmem.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_execmem.c
@@ -33,6 +33,7 @@
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
#include "pipe/p_thread.h"
+#include "pipe/p_util.h"
#include "rtasm_execmem.h"
@@ -118,7 +119,7 @@ rtasm_exec_free(void *addr)
*/
void *
-rtasm_exec_malloc(GLuint size)
+rtasm_exec_malloc(size_t size)
{
return MALLOC( size );
}
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
index b332192a62..dcbf76f600 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.c
@@ -21,7 +21,7 @@
*
**************************************************************************/
-#if defined(__i386__) || defined(__386__)
+#if defined(__i386__) || defined(__386__) || defined(i386)
#include "pipe/p_compiler.h"
#include "pipe/p_debug.h"
diff --git a/src/gallium/auxiliary/rtasm/rtasm_x86sse.h b/src/gallium/auxiliary/rtasm/rtasm_x86sse.h
index e4576001bf..606b41eb35 100644
--- a/src/gallium/auxiliary/rtasm/rtasm_x86sse.h
+++ b/src/gallium/auxiliary/rtasm/rtasm_x86sse.h
@@ -24,7 +24,7 @@
#ifndef _RTASM_X86SSE_H_
#define _RTASM_X86SSE_H_
-#if defined(__i386__) || defined(__386__)
+#if defined(__i386__) || defined(__386__) || defined(i386)
/* It is up to the caller to ensure that instructions issued are
* suitable for the host cpu. There are no checks made in this module