aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders/DFU/Descriptors.h
diff options
context:
space:
mode:
Diffstat (limited to 'Bootloaders/DFU/Descriptors.h')
-rw-r--r--Bootloaders/DFU/Descriptors.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Bootloaders/DFU/Descriptors.h b/Bootloaders/DFU/Descriptors.h
index d70b477dc..40f604a1e 100644
--- a/Bootloaders/DFU/Descriptors.h
+++ b/Bootloaders/DFU/Descriptors.h
@@ -189,6 +189,13 @@
const uint16_t wIndex,
const void** const DescriptorAddress)
ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);
+
+ // convert to L string
+ #define LSTR(s) XLSTR(s)
+ #define XLSTR(s) L ## #s
+ // convert to string
+ #define STR(s) XSTR(s)
+ #define XSTR(s) #s
-#endif
+#endif