mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 20:20:09 +01:00
gallium: Use debug_get_option for GETENV
This commit is contained in:
parent
6fa0bd0671
commit
aacfc326cc
1 changed files with 2 additions and 5 deletions
|
|
@ -51,7 +51,6 @@ extern "C" {
|
|||
debug_free( __FILE__, __LINE__, __FUNCTION__, _ptr )
|
||||
#define REALLOC( _ptr, _old_size, _size ) \
|
||||
debug_realloc( __FILE__, __LINE__, __FUNCTION__, _ptr, _old_size, _size )
|
||||
#define GETENV( X ) NULL
|
||||
|
||||
#else
|
||||
|
||||
|
|
@ -118,8 +117,6 @@ REALLOC( void *old_ptr, unsigned old_size, unsigned new_size )
|
|||
return new_ptr;
|
||||
}
|
||||
|
||||
#define GETENV( X ) NULL
|
||||
|
||||
#else /* !WIN32 */
|
||||
|
||||
#define MALLOC( SIZE ) malloc( SIZE )
|
||||
|
|
@ -130,8 +127,6 @@ REALLOC( void *old_ptr, unsigned old_size, unsigned new_size )
|
|||
|
||||
#define REALLOC( OLDPTR, OLDSIZE, NEWSIZE ) realloc( OLDPTR, NEWSIZE )
|
||||
|
||||
#define GETENV( X ) getenv( X )
|
||||
|
||||
#endif /* !WIN32 */
|
||||
#endif /* !DEBUG */
|
||||
|
||||
|
|
@ -139,6 +134,8 @@ REALLOC( void *old_ptr, unsigned old_size, unsigned new_size )
|
|||
|
||||
#define CALLOC_STRUCT(T) (struct T *) CALLOC(1, sizeof(struct T))
|
||||
|
||||
#define GETENV( X ) debug_get_option( X, NULL )
|
||||
|
||||
|
||||
/**
|
||||
* Return memory on given byte alignment
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue