Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kill off the CRT deprecate warning (#512) #515

Merged
merged 1 commit into from Mar 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion include/CoolPropTools.h
Expand Up @@ -581,7 +581,8 @@ template<class T> void normalize_vector(std::vector<T> &x)
}
return std::string(home);
#elif defined(__ISWINDOWS__)

#pragma warning (push)
#pragma warning (disable : 4996)
char * pUSERPROFILE = getenv("USERPROFILE");
if (pUSERPROFILE != NULL) {
return std::string(pUSERPROFILE);
Expand All @@ -594,6 +595,7 @@ template<class T> void normalize_vector(std::vector<T> &x)
return std::string("");
}
}
#pragma warning (pop)
#else
throw CoolProp::NotImplementedError("This function is not defined for your platform.");
#endif
Expand Down