aboutsummaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George2014-10-15 17:33:24 +0000
committerDamien George2014-10-15 17:33:24 +0000
commit4859edb95b53313b140318ee8674ec617c8c7566 (patch)
tree3155dac08a1fd61ac023c636506d0671a20f49f1 /py/mpconfig.h
parent95908b0f50e26fe2c90687966b60a0cf195f71de (diff)
py: Fix dummy definition of BEGIN/END_ATOMIC_SECTION.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 618b8fde5..4efe21d4b 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -431,10 +431,10 @@ typedef double mp_float_t;
// On embedded platforms, these will typically enable/disable irqs.
#ifndef MICROPY_BEGIN_ATOMIC_SECTION
-#define MICROPY_BEGIN_ATOMIC_SECTION()
+#define MICROPY_BEGIN_ATOMIC_SECTION() (0)
#endif
#ifndef MICROPY_END_ATOMIC_SECTION
-#define MICROPY_END_ATOMIC_SECTION()
+#define MICROPY_END_ATOMIC_SECTION(state) (void)(state)
#endif
// Allow to override static modifier for global objects, e.g. to use with