# HG changeset patch # User celestar # Date 1168519084 0 # Node ID adebdc9b413cedeac642f6f3fad13cd6470be4a6 # Parent bccd4b89e5364b55b5a1d8df1b880ae95b82006d (svn r8057) -Codechange: Declare the "new" max template as static line. diff -r bccd4b89e536 -r adebdc9b413c src/macros.h --- a/src/macros.h Thu Jan 11 12:32:10 2007 +0000 +++ b/src/macros.h Thu Jan 11 12:38:04 2007 +0000 @@ -20,7 +20,11 @@ #undef max #endif -template T max(T a, T b) { return a >= b ? a : b; } +template +static inline T max(T a, T b) +{ + return a >= b ? a : b; +} static inline int min(int a, int b) { if (a <= b) return a; return b; }