diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2006-01-04 18:58:43 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2006-01-04 18:58:43 +0000 |
commit | 180f39cb9da6e3169f95e9da5c8782c50f826af4 (patch) | |
tree | bdd66467f4d87d0618ddf2d2fcc67b722480cea4 /src/main.h | |
parent | 0407ba5655db79e81f6fc23d660e37a927b8f7cc (diff) | |
download | mana-180f39cb9da6e3169f95e9da5c8782c50f826af4.tar.gz mana-180f39cb9da6e3169f95e9da5c8782c50f826af4.tar.bz2 mana-180f39cb9da6e3169f95e9da5c8782c50f826af4.tar.xz mana-180f39cb9da6e3169f95e9da5c8782c50f826af4.zip |
FreeBSD Fixes from Icy.
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -29,7 +29,7 @@ class Image; class Sound; -#ifdef __USE_UNIX98 +#if (defined __USE_UNIX98 || defined __FreeBSD__) #include "../config.h" #elif defined WIN32 #include "../The_Mana_World_private.h" @@ -59,10 +59,12 @@ enum { * to be able to use strncpy instead of strcpy for * security and stability reasons */ -#define LEN_MAX_USERNAME 25 -#define LEN_MIN_USERNAME 4 -#define LEN_MAX_PASSWORD 25 -#define LEN_MIN_PASSWORD 4 +enum { + LEN_MAX_USERNAME = 25, + LEN_MIN_USERNAME = 4, + LEN_MAX_PASSWORD = 25, + LEN_MIN_PASSWORD = 4 +}; extern int map_address, char_ID; extern short map_port; |