summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/enums/net/mailopentype.h2
-rw-r--r--src/enums/simpletypes/enumdefines.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/enums/net/mailopentype.h b/src/enums/net/mailopentype.h
index 5040cee18..ad62a0252 100644
--- a/src/enums/net/mailopentype.h
+++ b/src/enums/net/mailopentype.h
@@ -23,7 +23,7 @@
#include "enums/simpletypes/enumdefines.h"
-enumStart(MailOpenType)
+enumStartT(MailOpenType, int8_t)
{
Mail = 0,
Account = 1,
diff --git a/src/enums/simpletypes/enumdefines.h b/src/enums/simpletypes/enumdefines.h
index 4db9bbab6..a1b5401ff 100644
--- a/src/enums/simpletypes/enumdefines.h
+++ b/src/enums/simpletypes/enumdefines.h
@@ -26,6 +26,7 @@
#ifdef ADVGCC
#define enumStart(name) enum class name
+#define enumStartT(name, type) enum class name : type
#define enumEnd(name) ; \
typedef name name##T
@@ -36,6 +37,11 @@
{ \
enum T
+#define enumStartT(name, type) \
+ namespace name \
+ { \
+ enum T
+
#define enumEnd(name) \
;\
} \