comparison src/minmax.h @ 125:e413158cae13

Add ushare project files.
author naoyan@johnstown.minaminoshima.org
date Sun, 03 Oct 2010 11:35:19 +0900
parents
children
comparison
equal deleted inserted replaced
124:9c7bc6c0327e 125:e413158cae13
1 /* MIN, MAX macros.
2 * Copyright (C) 1995, 1998, 2001, 2003, 2005 Free Software Foundation, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19 #ifndef _MINMAX_H_
20 #define _MINMAX_H_
21
22 #include <limits.h>
23
24 #ifndef MAX
25 #define MAX(a,b) ((a) > (b) ? (a) : (b))
26 #endif
27
28 #ifndef MIN
29 #define MIN(a,b) ((a) < (b) ? (a) : (b))
30 #endif
31
32 #endif /* _MINMAX_H_ */