summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-10-09 21:15:44 +0200
committerMichael Buesch <mb@bu3sch.de>2008-10-09 21:15:44 +0200
commit660677d70eeacb01304a547df5dacac1bda8d036 (patch)
tree4bfc93b95ffe02f8d0403a0a0125bfc60c153d02 /pressure_control/firmware
parent92af9d1735aab816bca994f513314cdcc8b9bd66 (diff)
downloadcnc-660677d70eeacb01304a547df5dacac1bda8d036.tar.xz
cnc-660677d70eeacb01304a547df5dacac1bda8d036.zip
Fix compilation warning.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware')
-rw-r--r--pressure_control/firmware/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pressure_control/firmware/util.h b/pressure_control/firmware/util.h
index 758f6f8..11c5f27 100644
--- a/pressure_control/firmware/util.h
+++ b/pressure_control/firmware/util.h
@@ -11,6 +11,7 @@
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
+#undef offsetof
#define offsetof(type, member) ((size_t)&((type *)0)->member)
#define min(a, b) ((a) < (b) ? (a) : (b))
bues.ch cgit interface