From 54079689a77536bf43a76b851a7a82f3ce884254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 16 Jun 2021 23:17:21 +0800 Subject: Nested struct can't be understood by C++ (at least gnu++14) --- icclient/admin.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'icclient') diff --git a/icclient/admin.h b/icclient/admin.h index dad603d..b7089a9 100644 --- a/icclient/admin.h +++ b/icclient/admin.h @@ -1,16 +1,18 @@ #ifndef ICCLIENT_ADMIN_H #define ICCLIENT_ADMIN_H +enum icclient_admin_group { + ICCLIENT_ADMIN_GROUP_CONTENT, + ICCLIENT_ADMIN_GROUP_MERCH, + ICCLIENT_ADMIN_GROUP_ORDERS +}; + struct icclient_admin { char *username; char *password; char *name; bool super; - enum icclient_admin_group { - ICCLIENT_ADMIN_GROUP_CONTENT, - ICCLIENT_ADMIN_GROUP_MERCH, - ICCLIENT_ADMIN_GROUP_ORDERS - } group; + enum icclient_admin_group group; }; #ifdef __cplusplus -- cgit v1.2.3