2009-11-22 15:15:53 +00:00
|
|
|
/** \file shared/defines.h
|
|
|
|
|
* Define macros commonly used in other parts of LCDproc.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*-
|
|
|
|
|
* This file is part of LCDproc.
|
|
|
|
|
*
|
|
|
|
|
* This file is released under the GNU General Public License.
|
|
|
|
|
* Refer to the COPYING file distributed with this package.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef SHARED_DEFINES_H
|
|
|
|
|
#define SHARED_DEFINES_H
|
|
|
|
|
|
|
|
|
|
/* Define min() and max() */
|
|
|
|
|
#ifndef min
|
|
|
|
|
# define min(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef max
|
|
|
|
|
# define max(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
|
|
#endif
|
|
|
|
|
|
2012-02-22 22:25:32 +00:00
|
|
|
/* Our own way of saying yes/no */
|
|
|
|
|
#ifndef bool
|
|
|
|
|
# define bool short
|
|
|
|
|
# define true 1
|
|
|
|
|
# define false 0
|
|
|
|
|
#endif
|
|
|
|
|
|
2009-11-22 15:15:53 +00:00
|
|
|
#endif
|