summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-01-04 18:58:43 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-01-04 18:58:43 +0000
commit180f39cb9da6e3169f95e9da5c8782c50f826af4 (patch)
treebdd66467f4d87d0618ddf2d2fcc67b722480cea4 /src/main.h
parent0407ba5655db79e81f6fc23d660e37a927b8f7cc (diff)
downloadmana-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.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main.h b/src/main.h
index 69d54a5a..a939879b 100644
--- a/src/main.h
+++ b/src/main.h
@@ -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;