Fixed compile errors in switch cases
This commit is contained in:
@@ -1405,8 +1405,9 @@ inline std::string rc_intern_env(std::string v)
|
||||
#endif
|
||||
}
|
||||
|
||||
inline int rc_intern_setEnv(std::string name, std::string value, int overwrite)
|
||||
inline int rc_intern_setEnv(std::string name, std::string value)
|
||||
{
|
||||
int overwrite = 1;
|
||||
#ifdef RC_WINDOWS
|
||||
//string env_cmd = name + "=" + value;
|
||||
return SetEnvironmentVariable(name.c_str(), value.c_str()) ? 1 : 0;
|
||||
@@ -1649,4 +1650,10 @@ std::string rc_intern_android_jni_message(std::string arg_c)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
int rc_numCPUs()
|
||||
{
|
||||
return SDL_GetCPUCount();
|
||||
}
|
||||
|
||||
#endif // RC_STDLIB_H_INCLUDED
|
||||
|
||||
Reference in New Issue
Block a user