Skip to content

Commit

Permalink
Merge pull request #11883 from dsouzai/snprintf
Browse files Browse the repository at this point in the history
Add definition for snprintf for MSC_VER < 1900
  • Loading branch information
pshipton committed Feb 4, 2021
2 parents 862846d + 2c98de6 commit 7138097
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/compiler/env/J9SharedCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <algorithm>
Expand Down
4 changes: 4 additions & 0 deletions runtime/compiler/env/j9method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stddef.h>
Expand Down

0 comments on commit 7138097

Please sign in to comment.