From e3c085cff4a933d04bd7869a1054d2b7072e1ba7 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 27 Oct 2007 14:20:10 +0000 Subject: Fixed a compilation error in the mail code. Blame the C standard and gcc for giving enums a variable-sized type, thus making forward declarations impossible. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11587 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/mmo.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/common') diff --git a/src/common/mmo.h b/src/common/mmo.h index ce0ddab25..4e50e7ca1 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -241,7 +241,16 @@ struct mmo_charstatus { #endif }; -enum mail_status; +enum mail_status { + MAIL_UNVERIFIED = -1, + MAIL_NEW, + MAIL_UNREAD, + MAIL_READ, + MAIL_DELETED, + MAIL_RETURNED, + MAIL_INVALID, +}; + struct mail_message { unsigned int id; int send_id; @@ -409,16 +418,6 @@ struct fame_list { char name[NAME_LENGTH]; }; -enum mail_status { - MAIL_UNVERIFIED = -1, - MAIL_NEW, - MAIL_UNREAD, - MAIL_READ, - MAIL_DELETED, - MAIL_RETURNED, - MAIL_INVALID, -}; - enum { GBI_EXP =1, // ギルドのEXP GBI_GUILDLV, // ギルドのLv -- cgit v1.2.3-60-g2f50