Changed __USE_XOPEN to _XOPEN_SOURCE and got rid of

some extra code.
parent a1b609f0
...@@ -21,14 +21,15 @@ ...@@ -21,14 +21,15 @@
59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#define READLINE_LIBRARY #define READLINE_LIBRARY
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
#include "config_readline.h" #include "config_readline.h"
#include <sys/types.h> #include <sys/types.h>
/* To get SuSE 9.3 to define wcwidth() (in wchar.h) */ /* To get SuSE 9.3 to define wcwidth() (in wchar.h) */
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif
#include <fcntl.h> #include <fcntl.h>
...@@ -62,10 +63,6 @@ extern int errno; ...@@ -62,10 +63,6 @@ extern int errno;
#include "rldefs.h" #include "rldefs.h"
#include "rlmbutil.h" #include "rlmbutil.h"
#ifdef HAVE_WCHAR_H
#include <wchar.h>
#endif
/* Some standard library routines. */ /* Some standard library routines. */
#include "readline.h" #include "readline.h"
#include "xmalloc.h" #include "xmalloc.h"
......
...@@ -21,14 +21,15 @@ ...@@ -21,14 +21,15 @@
59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#define READLINE_LIBRARY #define READLINE_LIBRARY
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
#include "config_readline.h" #include "config_readline.h"
#include <sys/types.h> #include <sys/types.h>
/* To get SuSE 9.3 to define wcwidth() (in wchar.h) */ /* To get SuSE 9.3 to define wcwidth() (in wchar.h) */
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif
#if defined (HAVE_UNISTD_H) #if defined (HAVE_UNISTD_H)
# include <unistd.h> # include <unistd.h>
...@@ -48,10 +49,6 @@ ...@@ -48,10 +49,6 @@
#include "rldefs.h" #include "rldefs.h"
#include "rlmbutil.h" #include "rlmbutil.h"
#ifdef HAVE_WCHAR_H
#include <wchar.h>
#endif
/* Termcap library stuff. */ /* Termcap library stuff. */
#include "tcap.h" #include "tcap.h"
......
...@@ -21,14 +21,15 @@ ...@@ -21,14 +21,15 @@
59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
#define READLINE_LIBRARY #define READLINE_LIBRARY
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
#endif
#include "config_readline.h" #include "config_readline.h"
#include <sys/types.h> #include <sys/types.h>
/* To get SuSE 9.3 to define wcwidth() (in wchar.h) */ /* To get SuSE 9.3 to define wcwidth() (in wchar.h) */
#ifndef __USE_XOPEN
#define __USE_XOPEN
#endif
#include <fcntl.h> #include <fcntl.h>
#include "posixjmp.h" #include "posixjmp.h"
...@@ -50,10 +51,6 @@ ...@@ -50,10 +51,6 @@
#include "rldefs.h" #include "rldefs.h"
#include "rlmbutil.h" #include "rlmbutil.h"
#ifdef HAVE_WCHAR_H
#include <wchar.h>
#endif
#if defined (TIOCSTAT_IN_SYS_IOCTL) #if defined (TIOCSTAT_IN_SYS_IOCTL)
# include <sys/ioctl.h> # include <sys/ioctl.h>
#endif /* TIOCSTAT_IN_SYS_IOCTL */ #endif /* TIOCSTAT_IN_SYS_IOCTL */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment