Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3b96efc0
Commit
3b96efc0
authored
Sep 04, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added configure check for str[n]casecmp.
parent
23cadd37
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
76 deletions
+83
-76
configure
configure
+54
-53
configure.in
configure.in
+2
-1
config.h.in
include/config.h.in
+5
-2
winestring.h
include/wine/winestring.h
+2
-3
string.c
memory/string.c
+0
-17
port.c
misc/port.c
+20
-0
No files found.
configure
View file @
3b96efc0
...
...
@@ -4407,8 +4407,9 @@ for ac_func in \
rfork
\
sendmsg
\
sigaltstack
\
strcasecmp
\
strerror
\
str
i
cmp
\
str
ncase
cmp
\
tcgetattr
\
timegm
\
usleep
\
...
...
@@ -4418,12 +4419,12 @@ for ac_func in \
do
echo
$ac_n
"checking for
$ac_func
""...
$ac_c
"
1>&6
echo
"configure:442
2
: checking for
$ac_func
"
>
&5
echo
"configure:442
3
: checking for
$ac_func
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_func_
$ac_func
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 442
7
"configure"
#line 442
8
"configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char
$ac_func
(); below. */
...
...
@@ -4446,7 +4447,7 @@ $ac_func();
; return 0; }
EOF
if
{
(
eval echo
configure:445
0
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
if
{
(
eval echo
configure:445
1
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
;
then
rm
-rf
conftest
*
eval
"ac_cv_func_
$ac_func
=yes"
else
...
...
@@ -4509,17 +4510,17 @@ for ac_hdr in \
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:451
3
: checking for
$ac_hdr
"
>
&5
echo
"configure:451
4
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 451
8
"configure"
#line 451
9
"configure"
#include "confdefs.h"
#include <
$ac_hdr
>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:452
3
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:452
4
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -4546,12 +4547,12 @@ fi
done
echo
$ac_n
"checking whether stat file-mode macros are broken""...
$ac_c
"
1>&6
echo
"configure:455
0
: checking whether stat file-mode macros are broken"
>
&5
echo
"configure:455
1
: checking whether stat file-mode macros are broken"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stat_broken
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 455
5
"configure"
#line 455
6
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
...
...
@@ -4604,12 +4605,12 @@ fi
echo
$ac_n
"checking for working const""...
$ac_c
"
1>&6
echo
"configure:460
8
: checking for working const"
>
&5
echo
"configure:460
9
: checking for working const"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_const
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 461
3
"configure"
#line 461
4
"configure"
#include "confdefs.h"
int main() {
...
...
@@ -4658,7 +4659,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
if
{
(
eval echo
configure:466
2
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:466
3
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_const
=
yes
else
...
...
@@ -4679,21 +4680,21 @@ EOF
fi
echo
$ac_n
"checking for inline""...
$ac_c
"
1>&6
echo
"configure:468
3
: checking for inline"
>
&5
echo
"configure:468
4
: checking for inline"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_inline
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
ac_cv_c_inline
=
no
for
ac_kw
in
inline __inline__ __inline
;
do
cat
>
conftest.
$ac_ext
<<
EOF
#line 469
0
"configure"
#line 469
1
"configure"
#include "confdefs.h"
int main() {
}
$ac_kw
foo() {
; return 0; }
EOF
if
{
(
eval echo
configure:469
7
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:469
8
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_inline
=
$ac_kw
;
break
else
...
...
@@ -4719,12 +4720,12 @@ EOF
esac
echo
$ac_n
"checking for ANSI C header files""...
$ac_c
"
1>&6
echo
"configure:472
3
: checking for ANSI C header files"
>
&5
echo
"configure:472
4
: checking for ANSI C header files"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_stdc
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 472
8
"configure"
#line 472
9
"configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
...
...
@@ -4732,7 +4733,7 @@ else
#include <float.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:473
6
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:473
7
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
...
...
@@ -4749,7 +4750,7 @@ rm -f conftest*
if
test
$ac_cv_header_stdc
=
yes
;
then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 475
3
"configure"
#line 475
4
"configure"
#include "confdefs.h"
#include <string.h>
EOF
...
...
@@ -4767,7 +4768,7 @@ fi
if
test
$ac_cv_header_stdc
=
yes
;
then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat
>
conftest.
$ac_ext
<<
EOF
#line 477
1
"configure"
#line 477
2
"configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
...
...
@@ -4788,7 +4789,7 @@ if test "$cross_compiling" = yes; then
:
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 479
2
"configure"
#line 479
3
"configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
...
...
@@ -4799,7 +4800,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if
{
(
eval echo
configure:480
3
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:480
4
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
:
else
...
...
@@ -4823,12 +4824,12 @@ EOF
fi
echo
$ac_n
"checking for size_t""...
$ac_c
"
1>&6
echo
"configure:482
7
: checking for size_t"
>
&5
echo
"configure:482
8
: checking for size_t"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_type_size_t
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 483
2
"configure"
#line 483
3
"configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
...
...
@@ -4856,7 +4857,7 @@ EOF
fi
echo
$ac_n
"checking size of long long""...
$ac_c
"
1>&6
echo
"configure:486
0
: checking size of long long"
>
&5
echo
"configure:486
1
: checking size of long long"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_sizeof_long_long
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -4864,7 +4865,7 @@ else
ac_cv_sizeof_long_long
=
0
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 486
8
"configure"
#line 486
9
"configure"
#include "confdefs.h"
#include <stdio.h>
main()
...
...
@@ -4875,7 +4876,7 @@ main()
exit(0);
}
EOF
if
{
(
eval echo
configure:48
79
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:48
80
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_sizeof_long_long
=
`
cat
conftestval
`
else
...
...
@@ -4898,12 +4899,12 @@ EOF
if
test
"
$ac_cv_header_linux_joystick_h
"
=
"yes"
then
echo
$ac_n
"checking "
whether linux/joystick.h uses the Linux 2.2+ API
"""...
$ac_c
"
1>&6
echo
"configure:490
2
: checking "
whether linux/joystick.h uses the Linux 2.2+ API
""
>
&5
echo
"configure:490
3
: checking "
whether linux/joystick.h uses the Linux 2.2+ API
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_linux_joystick_22_api
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 490
7
"configure"
#line 490
8
"configure"
#include "confdefs.h"
#include <sys/ioctl.h>
...
...
@@ -4915,7 +4916,7 @@ int main() {
/*empty*/
; return 0; }
EOF
if
{
(
eval echo
configure:49
19
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:49
20
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_linux_joystick_22_api
=
yes
else
...
...
@@ -4942,12 +4943,12 @@ fi
if
test
"
$ac_cv_header_sys_vfs_h
"
=
"yes"
then
echo
$ac_n
"checking "
whether sys/vfs.h defines statfs
"""...
$ac_c
"
1>&6
echo
"configure:494
6
: checking "
whether sys/vfs.h defines statfs
""
>
&5
echo
"configure:494
7
: checking "
whether sys/vfs.h defines statfs
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_vfs_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 495
1
"configure"
#line 495
2
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -4964,7 +4965,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:496
8
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:496
9
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_vfs_has_statfs
=
yes
else
...
...
@@ -4991,12 +4992,12 @@ fi
if
test
"
$ac_cv_header_sys_statfs_h
"
=
"yes"
then
echo
$ac_n
"checking "
whether sys/statfs.h defines statfs
"""...
$ac_c
"
1>&6
echo
"configure:499
5
: checking "
whether sys/statfs.h defines statfs
""
>
&5
echo
"configure:499
6
: checking "
whether sys/statfs.h defines statfs
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_statfs_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 500
0
"configure"
#line 500
1
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -5011,7 +5012,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:501
5
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:501
6
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_statfs_has_statfs
=
yes
else
...
...
@@ -5038,12 +5039,12 @@ fi
if
test
"
$ac_cv_header_sys_mount_h
"
=
"yes"
then
echo
$ac_n
"checking "
whether sys/mount.h defines statfs
"""...
$ac_c
"
1>&6
echo
"configure:504
2
: checking "
whether sys/mount.h defines statfs
""
>
&5
echo
"configure:504
3
: checking "
whether sys/mount.h defines statfs
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_sys_mount_has_statfs
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 504
7
"configure"
#line 504
8
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -5058,7 +5059,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:506
2
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:506
3
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_sys_mount_has_statfs
=
yes
else
...
...
@@ -5084,7 +5085,7 @@ fi
echo
$ac_n
"checking "
for
statfs.f_bfree
"""...
$ac_c
"
1>&6
echo
"configure:508
8
: checking "
for
statfs.f_bfree
""
>
&5
echo
"configure:508
9
: checking "
for
statfs.f_bfree
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bfree
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5093,7 +5094,7 @@ else
wine_cv_statfs_bfree
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 509
7
"configure"
#line 509
8
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -5120,7 +5121,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:512
4
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:512
5
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bfree
=
yes
else
...
...
@@ -5144,7 +5145,7 @@ EOF
fi
echo
$ac_n
"checking "
for
statfs.f_bavail
"""...
$ac_c
"
1>&6
echo
"configure:514
8
: checking "
for
statfs.f_bavail
""
>
&5
echo
"configure:514
9
: checking "
for
statfs.f_bavail
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
wine_cv_statfs_bavail
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5153,7 +5154,7 @@ else
wine_cv_statfs_bavail
=
no
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 515
7
"configure"
#line 515
8
"configure"
#include "confdefs.h"
#include <sys/types.h>
...
...
@@ -5180,7 +5181,7 @@ int main() {
; return 0; }
EOF
if
{
(
eval echo
configure:518
4
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:518
5
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
wine_cv_statfs_bavail
=
yes
else
...
...
@@ -5205,7 +5206,7 @@ fi
echo
$ac_n
"checking "
for
working sigaltstack
"""...
$ac_c
"
1>&6
echo
"configure:52
09
: checking "
for
working sigaltstack
""
>
&5
echo
"configure:52
10
: checking "
for
working sigaltstack
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_working_sigaltstack
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
...
...
@@ -5214,7 +5215,7 @@ else
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 521
8
"configure"
#line 521
9
"configure"
#include "confdefs.h"
#include <stdio.h>
...
...
@@ -5252,7 +5253,7 @@ else
}
EOF
if
{
(
eval echo
configure:525
6
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
if
{
(
eval echo
configure:525
7
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
&&
(
./conftest
;
exit
)
2>/dev/null
then
ac_cv_c_working_sigaltstack
=
"yes"
else
...
...
@@ -5279,12 +5280,12 @@ fi
echo
$ac_n
"checking "
for
msg_accrights
in
struct msghdr
"""...
$ac_c
"
1>&6
echo
"configure:528
3
: checking "
for
msg_accrights
in
struct msghdr
""
>
&5
echo
"configure:528
4
: checking "
for
msg_accrights
in
struct msghdr
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_c_msg_accrights
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 528
8
"configure"
#line 528
9
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
...
...
@@ -5292,7 +5293,7 @@ int main() {
struct msghdr hdr; hdr.msg_accrights=0
; return 0; }
EOF
if
{
(
eval echo
configure:529
6
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
if
{
(
eval echo
configure:529
7
:
\"
$ac_compile
\"
)
1>&5
;
(
eval
$ac_compile
)
2>&5
;
}
;
then
rm
-rf
conftest
*
ac_cv_c_msg_accrights
=
"yes"
else
...
...
@@ -5315,12 +5316,12 @@ fi
echo
$ac_n
"checking "
whether we need to define __i386__
"""...
$ac_c
"
1>&6
echo
"configure:53
19
: checking "
whether we need to define __i386__
""
>
&5
echo
"configure:53
20
: checking "
whether we need to define __i386__
""
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_cpp_def_i386
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 532
4
"configure"
#line 532
5
"configure"
#include "confdefs.h"
#if (defined(i386) || defined(__i386)) && !defined(__i386__)
yes
...
...
configure.in
View file @
3b96efc0
...
...
@@ -487,8 +487,9 @@ AC_CHECK_FUNCS(\
rfork \
sendmsg \
sigaltstack \
strcasecmp \
strerror \
str
i
cmp \
str
ncase
cmp \
tcgetattr \
timegm \
usleep \
...
...
include/config.h.in
View file @
3b96efc0
...
...
@@ -160,11 +160,14 @@
/* Define if you have the sigaltstack function. */
#undef HAVE_SIGALTSTACK
/* Define if you have the strcasecmp function. */
#undef HAVE_STRCASECMP
/* Define if you have the strerror function. */
#undef HAVE_STRERROR
/* Define if you have the str
i
cmp function. */
#undef HAVE_STR
I
CMP
/* Define if you have the str
ncase
cmp function. */
#undef HAVE_STR
NCASE
CMP
/* Define if you have the tcgetattr function. */
#undef HAVE_TCGETATTR
...
...
include/wine/winestring.h
View file @
3b96efc0
...
...
@@ -3,14 +3,13 @@
#include "windef.h"
INT16
WINAPI
WideCharToLocal16
(
LPSTR
,
LPWSTR
,
INT16
);
INT
WINAPI
WideCharToLocal
(
LPSTR
,
LPWSTR
,
INT
);
INT16
WINAPI
LocalToWideChar16
(
LPWSTR
,
LPSTR
,
INT16
);
INT
WINAPI
LocalToWideChar
(
LPWSTR
,
LPSTR
,
INT
);
INT
WINAPI
lstrncmpiA
(
LPCSTR
,
LPCSTR
,
INT
);
LPWSTR
WINAPI
lstrcpyAtoW
(
LPWSTR
,
LPCSTR
);
LPSTR
WINAPI
lstrcpyWtoA
(
LPSTR
,
LPCWSTR
);
LPWSTR
WINAPI
lstrcpynAtoW
(
LPWSTR
,
LPCSTR
,
INT
);
LPSTR
WINAPI
lstrcpynWtoA
(
LPSTR
,
LPCWSTR
,
INT
);
#define lstrncmpiA strncasecmp
#endif
/* __WINE_WINE_WINESTRING_H */
memory/string.c
View file @
3b96efc0
...
...
@@ -389,23 +389,6 @@ INT WINAPI lstrlenW( LPCWSTR str )
/***********************************************************************
* lstrncmpi32A (Not a Windows API)
*/
INT
WINAPI
lstrncmpiA
(
LPCSTR
str1
,
LPCSTR
str2
,
INT
n
)
{
INT
res
;
TRACE
(
"strncmpi %s and %s for %d chars
\n
"
,
debugstr_an
(
str1
,
n
),
debugstr_an
(
str2
,
n
),
n
);
if
(
!
n
)
return
0
;
while
((
--
n
>
0
)
&&
*
str1
)
if
(
(
res
=
toupper
(
*
str1
++
)
-
toupper
(
*
str2
++
))
)
return
res
;
return
toupper
(
*
str1
)
-
toupper
(
*
str2
);
}
/***********************************************************************
* lstrcpyAtoW (Not a Windows API)
*/
LPWSTR
WINAPI
lstrcpyAtoW
(
LPWSTR
dst
,
LPCSTR
src
)
...
...
misc/port.c
View file @
3b96efc0
...
...
@@ -6,6 +6,7 @@
#include "config.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
...
...
@@ -104,6 +105,25 @@ int clone( int (*fn)(void *), void *stack, int flags, void *arg )
#endif
/* !HAVE_CLONE && __linux__ */
#ifndef HAVE_STRCASECMP
int
strcasecmp
(
const
char
*
str1
,
const
char
*
str2
)
{
while
(
*
str1
&&
toupper
(
*
str1
)
==
toupper
(
*
str2
))
{
str1
++
;
str2
++
;
}
return
toupper
(
*
str1
)
-
toupper
(
*
str2
);
}
#endif
/* HAVE_STRCASECMP */
#ifndef HAVE_STRNCASECMP
int
strncasecmp
(
const
char
*
str1
,
const
char
*
str2
,
size_t
n
)
{
int
res
;
if
(
!
n
)
return
0
;
while
((
--
n
>
0
)
&&
*
str1
)
if
((
res
=
toupper
(
*
str1
++
)
-
toupper
(
*
str2
++
)))
return
res
;
return
toupper
(
*
str1
)
-
toupper
(
*
str2
);
}
#endif
/* HAVE_STRNCASECMP */
/**
* It looks like the openpty that comes with glibc in RedHat 5.0
* is buggy (second call returns what looks like a dup of 0 and 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment