* Replaced ALIGN macro with PAD

* Moved ALIGN16 macro from tr_local.h to ALIGN in q_shared.h
This commit is contained in:
Tim Angus 2005-12-05 17:32:54 +00:00
parent cfdd586ef8
commit 1704eecc52
6 changed files with 25 additions and 24 deletions

View file

@ -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)