mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Merge branch 'master' into string
This commit is contained in:
commit
2840e32853
@ -79,6 +79,8 @@ IF(MSVC)
|
|||||||
STRING(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
STRING(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
||||||
ENDIF(${flag_var} MATCHES "/MD")
|
ENDIF(${flag_var} MATCHES "/MD")
|
||||||
ENDFOREACH(flag_var)
|
ENDFOREACH(flag_var)
|
||||||
|
|
||||||
|
ADD_DEFINITIONS(-DNOMINMAX)
|
||||||
ELSE(MSVC)
|
ELSE(MSVC)
|
||||||
#Normally set by perl but we don't use the perl flags anymore so we set it.
|
#Normally set by perl but we don't use the perl flags anymore so we set it.
|
||||||
ADD_DEFINITIONS(-DHAS_UNION_SEMUN)
|
ADD_DEFINITIONS(-DHAS_UNION_SEMUN)
|
||||||
@ -125,17 +127,8 @@ OPTION(EQEMU_BUILD_PERL "Build Perl parser." ON)
|
|||||||
#C++11 stuff
|
#C++11 stuff
|
||||||
IF(NOT MSVC)
|
IF(NOT MSVC)
|
||||||
ADD_DEFINITIONS(-std=c++0x)
|
ADD_DEFINITIONS(-std=c++0x)
|
||||||
#Rvalue-Move - todo: auto set this based on gcc version
|
|
||||||
OPTION(EQEMU_ENABLE_RVALUE_MOVE "Enable EQEmu RValue References (Enable if GCC 4.3 or higher)" OFF)
|
|
||||||
ELSE(NOT MSVC)
|
|
||||||
#Rvalue-Move - todo: auto set this based on msvc version
|
|
||||||
OPTION(EQEMU_ENABLE_RVALUE_MOVE "Enable EQEmu RValue References (Enable if Visual Studio 2010 or higher)" OFF)
|
|
||||||
ENDIF(NOT MSVC)
|
ENDIF(NOT MSVC)
|
||||||
|
|
||||||
IF(EQEMU_ENABLE_RVALUE_MOVE)
|
|
||||||
ADD_DEFINITIONS(-DEQEMU_RVALUE_MOVE)
|
|
||||||
ENDIF(EQEMU_ENABLE_RVALUE_MOVE)
|
|
||||||
|
|
||||||
#Various definitions
|
#Various definitions
|
||||||
IF(EQEMU_BUILD_PERL)
|
IF(EQEMU_BUILD_PERL)
|
||||||
ADD_DEFINITIONS(-DEMBPERL)
|
ADD_DEFINITIONS(-DEMBPERL)
|
||||||
|
|||||||
@ -165,8 +165,8 @@ ProcLauncher::ProcRef ProcLauncher::Launch(Spec *&to_launch) {
|
|||||||
// Create the child process.
|
// Create the child process.
|
||||||
|
|
||||||
//glue together all the nice command line arguments
|
//glue together all the nice command line arguments
|
||||||
string args(it->program);
|
std::string args(it->program);
|
||||||
vector<string>::iterator cur, end;
|
std::vector<std::string>::iterator cur, end;
|
||||||
cur = it->args.begin();
|
cur = it->args.begin();
|
||||||
end = it->args.end();
|
end = it->args.end();
|
||||||
for(; cur != end; cur++) {
|
for(; cur != end; cur++) {
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
extern ErrorLog *server_log;
|
extern ErrorLog *server_log;
|
||||||
|
|
||||||
bool Encryption::LoadCrypto(string name)
|
bool Encryption::LoadCrypto(std::string name)
|
||||||
{
|
{
|
||||||
if(!Load(name.c_str()))
|
if(!Load(name.c_str()))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user