diff options
author | Haru <haru@dotalux.com> | 2015-01-12 18:29:24 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-01-12 18:35:36 +0100 |
commit | 4fa9fd843e19d041a6b142722e1f2c717a45f625 (patch) | |
tree | 5271cda69234c97a07a1ed9f2f6ef8510bdf94ac /src/login/login.h | |
parent | fe00cc320396bc7ac301a22592b718792ae49adf (diff) | |
download | hercules-4fa9fd843e19d041a6b142722e1f2c717a45f625.tar.gz hercules-4fa9fd843e19d041a6b142722e1f2c717a45f625.tar.bz2 hercules-4fa9fd843e19d041a6b142722e1f2c717a45f625.tar.xz hercules-4fa9fd843e19d041a6b142722e1f2c717a45f625.zip |
Blocked compilation of plugins that use unavailable functions
- Rather than failing at runtime, plugins that try to access
non-interfaced, unavailable functions or variables, will now show an
error at compile-time.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/login/login.h')
-rw-r--r-- | src/login/login.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/login/login.h b/src/login/login.h index 4c9bbd8b7..8a377927b 100644 --- a/src/login/login.h +++ b/src/login/login.h @@ -23,7 +23,7 @@ enum E_LOGINSERVER_ST // supported encryption types: 1- passwordencrypt, 2- passwordencrypt2, 3- both #define PASSWORDENC 3 -#define PASSWD_LEN 32+1 // 23+1 for plaintext, 32+1 for md5-ed passwords +#define PASSWD_LEN (32+1) // 23+1 for plaintext, 32+1 for md5-ed passwords struct login_session_data { int account_id; @@ -130,8 +130,10 @@ struct online_login_data { #define sex_str2num(str) ( ((str) == 'F') ? SEX_FEMALE : ((str) == 'M') ? SEX_MALE : SEX_SERVER ) #define MAX_SERVERS 30 +#ifdef HERCULES_CORE extern struct mmo_char_server server[MAX_SERVERS]; extern struct Login_Config login_config; +#endif // HERCULES_CORE /** * Login.c Interface @@ -202,6 +204,8 @@ struct login_interface { struct login_interface *login; +#ifdef HERCULES_CORE void login_defaults(void); +#endif // HERCULES_CORE #endif /* LOGIN_LOGIN_H */ |