Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions pdcurses/getch.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/* PDCurses */

#if !defined( _WIN32) || defined ( ___MINGW32__)
#include <unistd.h> /* included for POSIX definitions */
#endif

#include <curspriv.h>
#include <assert.h>

Expand Down Expand Up @@ -418,10 +422,7 @@ use clock_gettime() or gettimeofday() when available. */
#endif
#endif

#if defined( _POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 199309L) \
&& (!defined( __MINGW32__) || defined( CLOCK_REALTIME))
/* only newer MinGW environments have clock_gettime and
those have CLOCK_REALTIME as a macro */
#if defined( _POSIX_TIMERS) && (_POSIX_TIMERS > 0)
#define HAVE_CLOCK_GETTIME
#elif defined( _DEFAULT_SOURCE) || defined( _BSD_SOURCE) \
|| defined( __FreeBSD__) || defined( __MINGW32__)
Expand Down
Loading