mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-24 19:36:52 +03:00
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
This commit is contained in:
parent
1044d74fd3
commit
f5300af90a
@ -182,7 +182,8 @@ CVS code -
|
|||||||
do_credits()
|
do_credits()
|
||||||
- Use nanosleep() instead of usleep(). The latter is only
|
- Use nanosleep() instead of usleep(). The latter is only
|
||||||
standard under BSD, whereas the former is POSIX compliant.
|
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)
|
- Add explanatory comment. (DLR)
|
||||||
- faq.html:
|
- faq.html:
|
||||||
- Fixed inaccuracy: multibuffer mode was first in nano 1.1.0,
|
- Fixed inaccuracy: multibuffer mode was first in nano 1.1.0,
|
||||||
|
@ -24,13 +24,16 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <time.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "proto.h"
|
#include "proto.h"
|
||||||
#include "nano.h"
|
#include "nano.h"
|
||||||
|
|
||||||
|
#ifdef NANO_EXTRA
|
||||||
|
#include <time.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static int statblank = 0; /* Number of keystrokes left after
|
static int statblank = 0; /* Number of keystrokes left after
|
||||||
we call statusbar(), before we
|
we call statusbar(), before we
|
||||||
actually blank the statusbar */
|
actually blank the statusbar */
|
||||||
|
Loading…
Reference in New Issue
Block a user