Annotate doxygen-style
[centaur.git] / include / libelfu / generic.h
index 6a066348c637fe8586ad9e05ea9ba9e4f4fc8d7d..ed774b140211375c269320a43c74674e1776de05 100644 (file)
@@ -1,7 +1,21 @@
 #ifndef __LIBELFU_GENERIC_H__
 #define __LIBELFU_GENERIC_H__
 
-#include <libelf/gelf.h>
+#include <gelf.h>
+
+
+#ifndef MIN
+  #define MIN(x, y) ((x) < (y) ? (x) : (y))
+#endif
+
+#ifndef MAX
+  #define MAX(x, y) ((x) > (y) ? (x) : (y))
+#endif
+
+#ifndef ROUNDUP
+  #define ROUNDUP(x, align) ((x) + ((align) - ((x) % (align))) % (align))
+#endif
+
 
 #define OFFS_END(off, sz) ((off) + (sz))