forked from KolibriOS/kolibrios
max() as compile-time expression for gcc3
git-svn-id: svn://kolibrios.org@1871 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
888c0bb31e
commit
d01c2d2287
@ -647,6 +647,8 @@ char *resource_string(char *buf, char *end, struct resource *res,
|
||||
#define FLAG_BUF_SIZE (2 * sizeof(res->flags))
|
||||
#define DECODED_BUF_SIZE sizeof("[mem - 64bit pref window disabled]")
|
||||
#define RAW_BUF_SIZE sizeof("[mem - flags 0x]")
|
||||
#undef max
|
||||
#define max(a,b) ((a) > (b) ? (a) : (b))
|
||||
char sym[max(2*RSRC_BUF_SIZE + DECODED_BUF_SIZE,
|
||||
2*RSRC_BUF_SIZE + FLAG_BUF_SIZE + RAW_BUF_SIZE)];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user