mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
trace: Add PIPE_OS_APPLE.
This commit is contained in:
parent
6ce28a755c
commit
f6ca26e5a7
2 changed files with 3 additions and 3 deletions
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
#include "pipe/p_config.h"
|
||||
|
||||
#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS)
|
||||
#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE)
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -258,7 +258,7 @@ boolean trace_dump_trace_begin()
|
|||
trace_dump_writes("<?xml-stylesheet type='text/xsl' href='trace.xsl'?>\n");
|
||||
trace_dump_writes("<trace version='0.1'>\n");
|
||||
|
||||
#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS)
|
||||
#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD) || defined(PIPE_OS_SOLARIS) || defined(PIPE_OS_APPLE)
|
||||
/* Linux applications rarely cleanup GL / Gallium resources so catch
|
||||
* application exit here */
|
||||
atexit(trace_dump_trace_close);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
#if defined(PIPE_SUBSYSTEM_WINDOWS_USER)
|
||||
# define sleep Sleep
|
||||
#elif defined(PIPE_OS_LINUX)
|
||||
#elif defined(PIPE_OS_LINUX) || defined(PIPE_OS_APPLE)
|
||||
void usleep(int);
|
||||
# define sleep usleep
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue