summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/tools.h b/tools.h
index 7c8ff13..d19d785 100644
--- a/tools.h
+++ b/tools.h
@@ -1,5 +1,5 @@
/*
- * tools.h: The 'EnigmaNG' VDR skin
+ * tools.h: 'EnigmaNG' skin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
@@ -8,9 +8,20 @@
#ifndef __SKINENIGMA_TOOLS_H
#define __SKINENIGMA_TOOLS_H
-#include <vdr/tools.h>
+#include "common.h"
-const char *parseaux(const char *str);
+#ifdef min
+#undef min
+#endif
+#define min(x, y) (x < y ? x : y)
+
+#ifdef max
+#undef max
+#endif
+#define max(x, y) (x > y ? x : y)
+
+std::string parseaux(const char *str);
bool ischaracters(const char *aux, const char *mask);
#endif // __SKINENIGMA_TOOLS_H
+// vim:et:sw=2:ts=2: