summaryrefslogtreecommitdiffstatshomepage
path: root/py/qstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/qstr.h')
-rw-r--r--py/qstr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/qstr.h b/py/qstr.h
index b5c261f0d5..1989ebe962 100644
--- a/py/qstr.h
+++ b/py/qstr.h
@@ -37,9 +37,11 @@
// first entry in enum will be MP_QSTR_NULL=0, which indicates invalid/no qstr
enum {
+#ifndef __QSTR_EXTRACT
#define QDEF(id, str) id,
#include "genhdr/qstrdefs.generated.h"
#undef QDEF
+#endif
MP_QSTRnumber_of, // no underscore so it can't clash with any of the above
};