X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=include%2Fnc_win32.h;fp=include%2Fnc_win32.h;h=e67b8e0455064807fee8fa643b42a344c37567c4;hp=790e8dfe9388153dcefe17f7fd392f58862c88f7;hb=6315e1a380ecdb706d4f6518d2e8c7eb0db8fbe2;hpb=e27924b560884229fa4c9cf5a90778aa6b7e5e96 diff --git a/include/nc_win32.h b/include/nc_win32.h index 790e8dfe..e67b8e04 100644 --- a/include/nc_win32.h +++ b/include/nc_win32.h @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2018-2019,2020 Thomas E. Dickey * + * Copyright 2018-2020,2023 Thomas E. Dickey * * Copyright 2008-2010,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -31,7 +31,7 @@ * Author: Thomas Dickey, 2008-on * ****************************************************************************/ -/* $Id: nc_win32.h,v 1.9 2020/09/13 00:17:30 tom Exp $ */ +/* $Id: nc_win32.h,v 1.10 2023/02/25 20:09:23 tom Exp $ */ #ifndef NC_WIN32_H #define NC_WIN32_H 1 @@ -79,9 +79,11 @@ extern "C" { #include +#if !HAVE_CLOCK_GETTIME && !HAVE_GETTIMEOFDAY #undef HAVE_GETTIMEOFDAY -#define HAVE_GETTIMEOFDAY 1 +#define HAVE_GETTIMEOFDAY 2 extern NCURSES_EXPORT(int) _nc_gettimeofday(struct timeval *, void *); +#endif #undef wcwidth #define wcwidth(ucs) _nc_wcwidth((wchar_t)(ucs))