revision 135:2b05ea3d87c1
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 135:2b05ea3d87c1 |
parent | 134:d194907efdab |
child | 136:f07efd59604f |
author | nkeynes |
date | Sun Apr 30 01:48:38 2006 +0000 (17 years ago) |
Add max() macro (if it's not already defined)
src/dream.h | view | annotate | diff | log |
1.1 --- a/src/dream.h Thu Mar 30 11:31:05 2006 +00001.2 +++ b/src/dream.h Sun Apr 30 01:48:38 2006 +00001.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.14 +#ifndef max1.15 +#define max(a,b) ( (a) > (b) ? (a) : (b) )1.16 +#endif1.17 +1.18 #ifdef __cplusplus1.19 }1.20 #endif
.