diff --git a/cpp/IceGrid/icebox/HelloI.cpp b/cpp/IceGrid/icebox/HelloI.cpp index 915bf401b..77ec420a1 100644 --- a/cpp/IceGrid/icebox/HelloI.cpp +++ b/cpp/IceGrid/icebox/HelloI.cpp @@ -2,6 +2,11 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // +#ifdef _MSC_VER +// For getenv +# define _CRT_SECURE_NO_WARNINGS +#endif + #include "HelloI.h" #include #include diff --git a/cpp/IceStorm/clock/Publisher.cpp b/cpp/IceStorm/clock/Publisher.cpp index bde6fa9f5..7b7846eb1 100644 --- a/cpp/IceStorm/clock/Publisher.cpp +++ b/cpp/IceStorm/clock/Publisher.cpp @@ -2,6 +2,11 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // +#ifdef _MSC_VER +// For getenv +# define _CRT_SECURE_NO_WARNINGS +#endif + #include "Clock.h" #include #include