Issue information

Issue ID
#1261
Status
Fixed
Severity
Low
Started
Hercules Elf Bot
Mar 24, 2008 13:55
Last Post
Hercules Elf Bot
Mar 24, 2008 13:55
Confirmation
N/A

Hercules Elf Bot - Mar 24, 2008 13:55

Originally posted by [b]theultramage[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1261

this applies to compiling with g++

1.
cygwin also needs DB_MANUAL_CAST_TO_UNION defined, otherwise the compiler will complain that DBKey::DBKey(int) does not exist.

2.
cygwin also defines a native strnlen() implementation.
CODE
size_t     _EXFUN(strnlen,(const char *, size_t));

I think it's time to add a strnlen check to the configure script.

Also, it might be good to add a config.h mechanism, and a pre-defined config-win.h for visual studio (IMG:style_emoticons/default/smile.gif)