* Replaced ALIGN macro with PAD
* Moved ALIGN16 macro from tr_local.h to ALIGN in q_shared.h
This commit is contained in:
parent
cfdd586ef8
commit
1704eecc52
6 changed files with 25 additions and 24 deletions
|
@ -111,7 +111,13 @@ typedef int sfxHandle_t;
|
|||
typedef int fileHandle_t;
|
||||
typedef int clipHandle_t;
|
||||
|
||||
#define ALIGN(x) ((x+sizeof(long)-1) & ~(sizeof(long)-1))
|
||||
#define PAD(x,y) (((x)+(y)-1) & ~((y)-1))
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define ALIGN(x) __attribute__((aligned(x)))
|
||||
#else
|
||||
#define ALIGN(x)
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void *)0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue