Use _WIN32 instead WIN32. (#4484)

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
Yonggang Luo
2021-01-16 20:22:28 +00:00
committed by GitHub
parent fe3b0a8435
commit 3ce4dce805
6 changed files with 29 additions and 29 deletions
+3 -3
View File
@@ -19,13 +19,13 @@
#define _XOPEN_SOURCE 500
#endif
#ifdef WIN32
#ifdef _WIN32
#include <windows.h>
#elif defined (HAVE_TIME_H)
#include <time.h>
#elif defined (HAVE_UNISTD_H)
#include <unistd.h>
#endif /* WIN32 */
#endif /* _WIN32 */
#include "jerryscript-port.h"
#include "jerryscript-port-default.h"
@@ -36,7 +36,7 @@
*/
void jerry_port_sleep (uint32_t sleep_time) /**< milliseconds to sleep */
{
#ifdef WIN32
#ifdef _WIN32
Sleep (sleep_time);
#elif defined (HAVE_TIME_H)
struct timespec sleep_timespec;