From: Brian Paul Date: Wed, 29 Oct 2008 20:08:13 +0000 (-0600) Subject: gallium: test for PIPE_OS_LINUX instead of __linux__ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09570d2e737a4c9f3f24edd78af3b897ee261733;p=mesa.git gallium: test for PIPE_OS_LINUX instead of __linux__ --- diff --git a/src/gallium/auxiliary/rtasm/rtasm_execmem.c b/src/gallium/auxiliary/rtasm/rtasm_execmem.c index 19087589a87..864bd4d3fe2 100644 --- a/src/gallium/auxiliary/rtasm/rtasm_execmem.c +++ b/src/gallium/auxiliary/rtasm/rtasm_execmem.c @@ -38,12 +38,13 @@ #include "rtasm_execmem.h" -#if defined(__linux__) +#if defined(PIPE_OS_LINUX) + /* * Allocate a large block of memory which can hold code then dole it out * in pieces by means of the generic memory manager code. -*/ + */ #include #include @@ -113,7 +114,7 @@ rtasm_exec_free(void *addr) } -#else +#else /* PIPE_OS_LINUX */ /* * Just use regular memory. @@ -133,4 +134,4 @@ rtasm_exec_free(void *addr) } -#endif +#endif /* PIPE_OS_LINUX */