diff options
author | José Fonseca <[email protected]> | 2008-01-25 19:33:58 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-01-26 10:35:09 +0900 |
commit | 7411a84c2bd6f4dd4f027c6c6a647822cbb4c061 (patch) | |
tree | b07780cba6a8a2d32a511af7ef1e7ae36dcea141 /src/mesa/pipe/p_util.h | |
parent | 9cbff50cb8d8c727bb0da1c60813fffe66f390e7 (diff) |
gallium: Define MALLOC_STRUCT.
Diffstat (limited to 'src/mesa/pipe/p_util.h')
-rw-r--r-- | src/mesa/pipe/p_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_util.h b/src/mesa/pipe/p_util.h index a2bc330424d..059528787d6 100644 --- a/src/mesa/pipe/p_util.h +++ b/src/mesa/pipe/p_util.h @@ -108,6 +108,8 @@ REALLOC( void *old_ptr, unsigned old_size, unsigned new_size ) #endif /* WIN32 */ +#define MALLOC_STRUCT(T) (struct T *) MALLOC(sizeof(struct T)) + #define CALLOC_STRUCT(T) (struct T *) CALLOC(1, sizeof(struct T)) |