From: David Lawrence Ramsey Date: Tue, 24 Feb 2004 20:48:12 +0000 (+0000) Subject: only include time.h in winio.c if NANO_EXTRA is defined, since we only X-Git-Tag: v1.3.2~43 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f5300af90abafeafaa159ba6cd0c0c8690cfde46;p=nano.git only include time.h in winio.c if NANO_EXTRA is defined, since we only need it for nanosleep() in do_credits() git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1661 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index f0d2dee1..81ef8f1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -182,7 +182,8 @@ CVS code - do_credits() - Use nanosleep() instead of usleep(). The latter is only standard under BSD, whereas the former is POSIX compliant. - (DLR) + Accordingly, only include time.h if we use this function, i.e, + if NANO_EXTRA is defined. (DLR) - Add explanatory comment. (DLR) - faq.html: - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0, diff --git a/src/winio.c b/src/winio.c index fc9359b1..c33a2ecb 100644 --- a/src/winio.c +++ b/src/winio.c @@ -24,13 +24,16 @@ #include #include #include -#include #include #include #include #include "proto.h" #include "nano.h" +#ifdef NANO_EXTRA +#include +#endif + static int statblank = 0; /* Number of keystrokes left after we call statusbar(), before we actually blank the statusbar */