Introduce shared/defines.h to collect commonly used macros. For now

it defines min() / max() macros.
This commit is contained in:
mmdolze
2009-11-22 15:15:53 +00:00
parent 30447dd905
commit 73b7ec00ff
12 changed files with 35 additions and 25 deletions
+3 -3
View File
@@ -60,17 +60,17 @@
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include "lcd.h"
#include "pylcd.h"
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "shared/defines.h"
#include "lcd.h"
#include "pylcd.h"
#include "lcd_lib.h"
#include "report.h"
#define min(a, b) ((a)<(b) ? (a) : (b))
#define True 1
#define False 0