]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/dots_termcap.c
ncurses 6.2 - patch 20200829
[ncurses.git] / test / dots_termcap.c
index 52749c754d63122d8e23731582ef4fff744b437e..27ee5dc5ffd4b7a2fabb9545697855d476370076 100644 (file)
 /*
  * Author: Thomas E. Dickey
  *
 /*
  * Author: Thomas E. Dickey
  *
- * $Id: dots_termcap.c,v 1.24 2020/05/29 23:04:02 tom Exp $
+ * $Id: dots_termcap.c,v 1.25 2020/08/29 16:22:03 juergen Exp $
  *
  * A simple demo of the termcap interface.
  */
 #define USE_TINFO
 #include <test.priv.h>
 
  *
  * A simple demo of the termcap interface.
  */
 #define USE_TINFO
 #include <test.priv.h>
 
-#if !defined(_WIN32)
+#if !defined(_NC_WINDOWS)
 #include <sys/time.h>
 #endif
 
 #include <sys/time.h>
 #endif
 
@@ -154,7 +154,7 @@ static void
 my_napms(int ms)
 {
     if (ms > 0) {
 my_napms(int ms)
 {
     if (ms > 0) {
-#if defined(_WIN32) || !HAVE_GETTIMEOFDAY
+#if defined(_NC_WINDOWS) || !HAVE_GETTIMEOFDAY
        Sleep((DWORD) ms);
 #else
        struct timeval data;
        Sleep((DWORD) ms);
 #else
        struct timeval data;