diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index d97899298829fcca09e4a591122f531b77196d53..8550ac39ac1da5e5278c4a8b6f2ed25566e3a3f6 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -181,9 +181,6 @@ Q(memoryview)
 #endif
 Q(bytes)
 Q(callable)
-#if MICROPY_PY_STRUCT
-Q(calcsize)
-#endif
 Q(chr)
 Q(classmethod)
 Q(_collections)
@@ -467,6 +464,7 @@ Q(print_exception)
 Q(struct)
 Q(pack)
 Q(unpack)
+Q(calcsize)
 #endif
 
 #if MICROPY_PY_UCTYPES