diff --git a/runtime/compiler/env/J9SharedCache.cpp b/runtime/compiler/env/J9SharedCache.cpp index 677dfe85144..2a7085019f6 100644 --- a/runtime/compiler/env/J9SharedCache.cpp +++ b/runtime/compiler/env/J9SharedCache.cpp @@ -20,6 +20,10 @@ * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception *******************************************************************************/ +#if defined (_MSC_VER) && (_MSC_VER < 1900) +#define snprintf _snprintf +#endif + #include "env/J9SharedCache.hpp" #include diff --git a/runtime/compiler/env/j9method.cpp b/runtime/compiler/env/j9method.cpp index cd0928aaf97..513a3acc6c2 100644 --- a/runtime/compiler/env/j9method.cpp +++ b/runtime/compiler/env/j9method.cpp @@ -20,6 +20,10 @@ * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception *******************************************************************************/ +#if defined (_MSC_VER) && (_MSC_VER < 1900) +#define snprintf _snprintf +#endif + #include "env/j9method.h" #include