1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

CONFIG_WIN32 -> CONFIG_OS_WIN32

This commit is contained in:
Laurent MONIN 2006-01-11 20:10:27 +01:00 committed by Laurent MONIN
parent 86f5f2cf48
commit 202965d338
16 changed files with 30 additions and 30 deletions

View File

@ -153,7 +153,7 @@ CONFIG_SSL = @CONFIG_SSL@
CONFIG_SYSMOUSE = @CONFIG_SYSMOUSE@
CONFIG_OS_UNIX = @CONFIG_OS_UNIX@
CONFIG_URI_REWRITE = @CONFIG_URI_REWRITE@
CONFIG_WIN32 = @CONFIG_WIN32@
CONFIG_OS_WIN32 = @CONFIG_OS_WIN32@
CONFIG_XBEL_BOOKMARKS = @CONFIG_XBEL_BOOKMARKS@
CONFIG_XMLTO = @CONFIG_XMLTO@

View File

@ -1,5 +1,5 @@
AC_DEFUN([EL_CONFIG_WIN32],
AC_DEFUN([EL_CONFIG_OS_WIN32],
[
AC_MSG_CHECKING([for win32 threads])

View File

@ -148,8 +148,8 @@ AC_SUBST(CONFIG_BEOS)
EL_CHECK_COMPILER_MACROS(CONFIG_OS_RISCOS, [RISCOS], [__riscos__])
AC_SUBST(CONFIG_OS_RISCOS)
EL_CHECK_COMPILER_MACROS(CONFIG_WIN32, [WIN32], [_WIN32 __WIN32__])
AC_SUBST(CONFIG_WIN32)
EL_CHECK_COMPILER_MACROS(CONFIG_OS_WIN32, [WIN32], [_WIN32 __WIN32__])
AC_SUBST(CONFIG_OS_WIN32)
EL_CHECK_COMPILER_MACROS(CONFIG_OS_OS2, [EMX], [__EMX__])
AC_SUBST(CONFIG_OS_OS2)
@ -159,7 +159,7 @@ AC_MSG_CHECKING([for UNIX])
dnl FIXME: some depend kind of mechanism
if test "$CONFIG_BEOS" = no && \
test "$CONFIG_OS_RISCOS" = no && \
test "$CONFIG_WIN32" = no && \
test "$CONFIG_OS_WIN32" = no && \
test "$CONFIG_OS_OS2" = no; then
EL_CONFIG(CONFIG_OS_UNIX, [UNIX])
else
@ -492,8 +492,8 @@ dnl ===================================================================
dnl Checks for Win32
dnl ===================================================================
if test "$CONFIG_WIN32" = yes; then
EL_CONFIG_WIN32
if test "$CONFIG_OS_WIN32" = yes; then
EL_CONFIG_OS_WIN32
fi
dnl ===================================================================

View File

@ -11,7 +11,7 @@
#error Out of luck, buddy!
#elif CONFIG_OS_UNIX
#define XP_UNIX
#elif CONFIG_WIN32
#elif CONFIG_OS_WIN32
#define XP_WIN
#endif

View File

@ -6,7 +6,7 @@ SUBDIRS-$(CONFIG_BEOS) += beos
SUBDIRS-$(CONFIG_OS_OS2) += os2
SUBDIRS-$(CONFIG_OS_RISCOS) += riscos
SUBDIRS-$(CONFIG_OS_UNIX) += unix
SUBDIRS-$(CONFIG_WIN32) += win32
SUBDIRS-$(CONFIG_OS_WIN32) += win32
OBJS = \
getifaddrs.o \

View File

@ -39,7 +39,7 @@
/* Attempt to workaround the EINTR mess. */
#if defined(EINTR) && !defined(CONFIG_WIN32)
#if defined(EINTR) && !defined(CONFIG_OS_WIN32)
#ifdef TEMP_FAILURE_RETRY /* GNU libc */
#define safe_read(fd, buf, count) TEMP_FAILURE_RETRY(read(fd, buf, count))
@ -71,12 +71,12 @@ safe_write(int fd, const void *buf, size_t count) {
}
#endif /* TEMP_FAILURE_RETRY */
#else /* EINTR && !CONFIG_WIN32 */
#else /* EINTR && !CONFIG_OS_WIN32 */
#define safe_read(fd, buf, count) read(fd, buf, count)
#define safe_write(fd, buf, count) write(fd, buf, count)
#endif /* EINTR && !CONFIG_WIN32 */
#endif /* EINTR && !CONFIG_OS_WIN32 */
#ifndef HAVE_FTELLO
#define ftello(stream) ftell(stream)

View File

@ -30,7 +30,7 @@ const struct open_in_new open_in_new[] = {
{ ENV_OS2VIO, DEFAULT_OS2_WINDOW_CMD, N_("~Window") },
{ ENV_OS2VIO, DEFAULT_OS2_FULLSCREEN_CMD, N_("~Full screen") },
#endif
#ifdef CONFIG_WIN32
#ifdef CONFIG_OS_WIN32
{ ENV_WIN32, "", N_("~Window") },
#endif
#ifdef CONFIG_BEOS

View File

@ -185,7 +185,7 @@ get_shell(void)
/* Terminal size */
#if !defined(CONFIG_OS_OS2) && !defined(CONFIG_WIN32)
#if !defined(CONFIG_OS_OS2) && !defined(CONFIG_OS_WIN32)
static void
sigwinch(void *s)
@ -245,7 +245,7 @@ c_pipe(int *fd)
return pipe(fd);
}
#elif defined(CONFIG_OS_OS2) || defined(CONFIG_WIN32)
#elif defined(CONFIG_OS_OS2) || defined(CONFIG_OS_WIN32)
void
set_bin(int fd)
@ -291,7 +291,7 @@ is_gnuscreen(void)
}
#if defined(CONFIG_OS_UNIX) || defined(CONFIG_WIN32)
#if defined(CONFIG_OS_UNIX) || defined(CONFIG_OS_WIN32)
int
is_xterm(void)
@ -334,7 +334,7 @@ unsigned int resize_count = 0;
#ifndef CONFIG_OS_OS2
#if !(defined(CONFIG_BEOS) && defined(HAVE_SETPGID)) && !defined(CONFIG_WIN32)
#if !(defined(CONFIG_BEOS) && defined(HAVE_SETPGID)) && !defined(CONFIG_OS_WIN32)
int
exe(unsigned char *path)
@ -687,7 +687,7 @@ done_draw(void)
#endif
#if !defined(CONFIG_WIN32)
#if !defined(CONFIG_OS_WIN32)
int
get_output_handle(void)
{
@ -707,7 +707,7 @@ get_ctl_handle(void)
#if !defined(CONFIG_BEOS) && !(defined(HAVE_BEGINTHREAD) && defined(HAVE_READ_KBD)) \
&& !defined(CONFIG_WIN32)
&& !defined(CONFIG_OS_WIN32)
int
get_input_handle(void)
@ -717,7 +717,7 @@ get_input_handle(void)
#endif
#ifndef CONFIG_WIN32
#ifndef CONFIG_OS_WIN32
void
init_osdep(void)
@ -798,7 +798,7 @@ resume_mouse(void *data)
#endif
#ifndef CONFIG_WIN32
#ifndef CONFIG_OS_WIN32
/* Create a bitmask consisting from system-independent envirnoment modifiers.
* This is then complemented by system-specific modifiers in an appropriate
* get_system_env() routine. */

View File

@ -239,7 +239,7 @@ elinks_raise(int signal)
#define INT16SZ 2
/* TODO: Move and populate. --jonas */
#ifdef CONFIG_WIN32
#ifdef CONFIG_OS_WIN32
#define SET_ERRNO(e) WSASetLastError(errno = (e))
#else
#define SET_ERRNO(e) errno = e

View File

@ -5,7 +5,7 @@
&& !defined(CONFIG_OS_OS2) \
&& !defined(CONFIG_OS_RISCOS) \
&& !defined(CONFIG_OS_UNIX) \
&& !defined(CONFIG_WIN32)
&& !defined(CONFIG_OS_WIN32)
#warning No OS platform defined, maybe config.h was not included

View File

@ -2,7 +2,7 @@
#ifndef EL__OSDEP_WIN32_OVERRIDES_H
#define EL__OSDEP_WIN32_OVERRIDES_H
#ifdef CONFIG_WIN32
#ifdef CONFIG_OS_WIN32
#ifdef HAVE_WINDOWS_H
#include <windows.h>

View File

@ -2,7 +2,7 @@
#ifndef EL__OSDEP_WIN32_SYSINFO_H
#define EL__OSDEP_WIN32_SYSINFO_H
#ifdef CONFIG_WIN32
#ifdef CONFIG_OS_WIN32
#define SYSTEM_NAME "Win32"
#define SYSTEM_STR "win32"

View File

@ -30,7 +30,7 @@
void
init_osdep(void)
{
#ifdef CONFIG_WIN32
#ifdef CONFIG_OS_WIN32
WSADATA ws;
WORD ver = MAKEWORD(1,1);
#ifdef CONFIG_IPV6

View File

@ -2,7 +2,7 @@
#ifndef EL__OSDEP_WIN32_WIN32_H
#define EL__OSDEP_WIN32_WIN32_H
#ifdef CONFIG_WIN32
#ifdef CONFIG_OS_WIN32
struct terminal;
@ -59,5 +59,5 @@ int tcgetattr(int fd, struct termios *termios_p);
int tcsetattr(int fd, int optional_actions, const struct termios *termios_p);
#endif /* __CYGWIN__ */
#endif /* CONFIG_WIN32 */
#endif /* CONFIG_OS_WIN32 */
#endif

View File

@ -714,7 +714,7 @@ erase_screen(struct terminal *term)
void
beep_terminal(struct terminal *term)
{
#ifdef CONFIG_WIN32
#ifdef CONFIG_OS_WIN32
MessageBeep(MB_ICONEXCLAMATION);
#else
hard_write(term->fdout, "\a", 1);

View File

@ -40,7 +40,7 @@ static void
er(int bell, int shall_sleep, unsigned char *fmt, va_list params)
{
if (bell)
#ifdef CONFIG_WIN32
#ifdef CONFIG_OS_WIN32
MessageBeep(MB_ICONEXCLAMATION);
#else
fputc(7, stderr); /* load and annoying on Windows */