gcc and namespace fix /EQEmuLoginServer/Client.cpp
This is a little diff to work around gcc and the enum/namespace issue. Apparently from what I've found online gcc doesn't like the namespace identifier in its enums, so you must declare a variable, set it, then compare with that.
If anyone else has a better way to fix this please speak up! Code:
Index: Client.cpp |
You should just be able to do this:
if(mode == (unsigned int)lm_from_world) Is it actually an error now or still just a warning? |
Yes, good call. Making the change you suggested keeps gcc compiling it just fine without allocating another variable for the comparison.
I think this still needs to be committed to SVN though. Thanks, -ork |
It looks like as of gcc 4.4, scoped and strongly typed enums are supported. Just fix the makefile.
Code:
COPTS=$(WFLAGS) -O -g -m32 -pthread -pipe -DEQLAUNCH $(DFLAGS) $(MYSQL_FLAGS) -std=c++0x |
Quote:
Thanks, -ork |
All times are GMT -4. The time now is 03:56 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.