* features.h, keys.h, textconf.h, x.h: added protection against

multiple inclusion
This commit is contained in:
Pavel Roskin 2000-08-30 20:51:03 +00:00
parent 6bdd6d961d
commit 6c7f15c285
5 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-08-30 Pavel Roskin <proski@gnu.org>
* features.h, keys.h, textconf.h, x.h: added protection against
multiple inclusion
2000-08-23 Pavel Roskin <proski@gnu.org>
* features.c: include <sys/param.h> to avoid a warning

View File

@ -1,3 +1,6 @@
#ifndef __FEATURES_H
#define __FEATURES_H
#ifdef USE_NCURSES
#define status_using_ncurses (1)
#else
@ -5,3 +8,5 @@
#endif
extern void version (int verbose);
#endif /* __FEATURES_H */

View File

@ -1,3 +1,6 @@
#ifndef __KEYS_H
#define __KEYS_H
/* Key constants as used by mc for non-curses ports */
enum {
@ -13,3 +16,5 @@ enum {
#define KEY_F(x) 1000+x
#endif /* __KEYS_H */

View File

@ -1,3 +1,5 @@
#ifndef __TEXTCONF_H
#define __TEXTCONF_H
/* Defines what features are to be includes in the text mode edition */
#define COMPUTE_FORMAT_ALLOCATIONS 1
@ -5,3 +7,5 @@
#define PORT_NEEDS_CHANGE_SCREEN_SIZE 1
#define x_flush_events()
#define port_shutdown_extra_fds()
#endif /* __TEXTCONF_H */

View File

@ -1,3 +1,5 @@
#ifndef __X_H
#define __X_H
#ifndef HAVE_X
# include "textconf.h"
@ -12,3 +14,4 @@
# include "gmain.h"
#endif
#endif /* __X_H */