summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-27 14:20:10 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-27 14:20:10 +0000
commite3c085cff4a933d04bd7869a1054d2b7072e1ba7 (patch)
tree2621ff1489d2e7255fd0c6dd7f5d929a90c81a1c /src/common
parent4c0b6e20600032b95b6ff4b0add236f44daabb3c (diff)
downloadhercules-e3c085cff4a933d04bd7869a1054d2b7072e1ba7.tar.gz
hercules-e3c085cff4a933d04bd7869a1054d2b7072e1ba7.tar.bz2
hercules-e3c085cff4a933d04bd7869a1054d2b7072e1ba7.tar.xz
hercules-e3c085cff4a933d04bd7869a1054d2b7072e1ba7.zip
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
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mmo.h21
1 files changed, 10 insertions, 11 deletions
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