From d1dff349970ba1648048b5492796df71ffb7b11b Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Fri, 2 Oct 2009 16:11:06 +0000 Subject: [PATCH] right fix for msvcpp problem --- bochs/configure | 12 ++++++++++-- bochs/configure.in | 6 ++++-- bochs/osdep.h | 12 +++--------- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/bochs/configure b/bochs/configure index 019b6c6f0..e1a9dc291 100755 --- a/bochs/configure +++ b/bochs/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: configure.in,v 1.409 2009/08/10 08:08:25 sshwarts Exp . +# From configure.in Id: configure.in,v 1.410 2009/08/10 15:44:49 sshwarts Exp . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # @@ -37536,7 +37536,7 @@ _ACEOF _ACEOF cat >>confdefs.h <<\_ACEOF -#define BX_HAVE_STRICMP 0 +#define BX_HAVE_STRICMP 1 _ACEOF cat >>confdefs.h <<\_ACEOF @@ -37549,6 +37549,14 @@ _ACEOF cat >>confdefs.h <<\_ACEOF #define BX_HAVE_STRTOUQ 0 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define BX_HAVE_STRREV 1 +_ACEOF + + cat >>confdefs.h <<\_ACEOF +#define BX_HAVE_STRDUP 1 _ACEOF cat >>confdefs.h <<\_ACEOF diff --git a/bochs/configure.in b/bochs/configure.in index 09c6a73e8..d96ba67ab 100644 --- a/bochs/configure.in +++ b/bochs/configure.in @@ -2,7 +2,7 @@ dnl // Process this file with autoconf to produce a configure script. AC_PREREQ(2.50) AC_INIT(bochs.h) -AC_REVISION([[$Id: configure.in,v 1.410 2009-08-10 15:44:49 sshwarts Exp $]]) +AC_REVISION([[$Id: configure.in,v 1.411 2009-10-02 16:11:06 sshwarts Exp $]]) AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(ltdlconf.h) @@ -2507,10 +2507,12 @@ case "$target" in AC_DEFINE(BX_64BIT_CONSTANTS_USE_LL, 0) AC_DEFINE(inline, __forceinline) AC_DEFINE(BX_NO_ATTRIBUTES, 1) - AC_DEFINE(BX_HAVE_STRICMP, 0) + AC_DEFINE(BX_HAVE_STRICMP, 1) AC_DEFINE(BX_HAVE_STRCASECMP, 0) AC_DEFINE(BX_HAVE_STRTOULL, 0) AC_DEFINE(BX_HAVE_STRTOUQ, 0) + AC_DEFINE(BX_HAVE_STRREV, 1) + AC_DEFINE(BX_HAVE_STRDUP, 1) AC_DEFINE(HAVE_LIBREADLINE, 0) AC_DEFINE(BX_HAVE_GETTIMEOFDAY, 0) AC_DEFINE(BX_HAVE_DLFCN_H, 0) diff --git a/bochs/osdep.h b/bochs/osdep.h index 052e99f51..e877ce18a 100644 --- a/bochs/osdep.h +++ b/bochs/osdep.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: osdep.h,v 1.34 2009-10-02 15:28:42 akrisak Exp $ +// $Id: osdep.h,v 1.35 2009-10-02 16:11:06 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -91,8 +91,7 @@ extern "C" { #define unlink _unlink #define strdup _strdup #define strrev _strrev -#undef BX_HAVE_STRREV -#define BX_HAVE_STRREV 1 +#define stricmp _stricmp #define getch _getch #endif @@ -171,12 +170,7 @@ extern "C" { extern char *bx_strrev(char *str); #endif -#if defined(_MSC_VER) - // MSDEV is a special case because configure script don't handle it -#ifndef stricmp - #define stricmp _stricmp -#endif -#elif BX_HAVE_STRICMP +#if BX_HAVE_STRICMP // great, just use the usual function #elif BX_HAVE_STRCASECMP #define stricmp strcasecmp