Search
lxdream.org :: lxdream/src/dream.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dream.h
changeset 135:2b05ea3d87c1
prev119:cef4d880123c
next180:e6dcf9b65658
author nkeynes
date Sun Apr 30 01:48:38 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add max() macro (if it's not already defined)
file annotate diff log raw
1.1 --- a/src/dream.h Mon Mar 20 11:59:33 2006 +0000
1.2 +++ b/src/dream.h Sun Apr 30 01:48:38 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dream.h,v 1.8 2006-03-20 11:59:33 nkeynes Exp $
1.6 + * $Id: dream.h,v 1.9 2006-04-30 01:48:38 nkeynes Exp $
1.7 *
1.8 * Miscellaneous application-wide declarations (mainly logging atm)
1.9 *
1.10 @@ -114,6 +114,10 @@
1.11 int fread_string( char *s, int maxlen, FILE *f );
1.12 void fwrite_dump( unsigned char *buf, unsigned int length, FILE *f );
1.13
1.14 +#ifndef max
1.15 +#define max(a,b) ( (a) > (b) ? (a) : (b) )
1.16 +#endif
1.17 +
1.18 #ifdef __cplusplus
1.19 }
1.20 #endif
.