Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a7ca2ba7
Commit
a7ca2ba7
authored
Jan 12, 2001
by
Andreas Mohr
Committed by
Alexandre Julliard
Jan 12, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NetBSD 1.5 is lacking ecvt, fcvt, gcvt for crtdll.
parent
22c80a2e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
0 deletions
+50
-0
configure
configure
+0
-0
configure.in
configure.in
+1
-0
config.h.in
include/config.h.in
+3
-0
port.c
library/port.c
+46
-0
No files found.
configure
View file @
a7ca2ba7
This diff is collapsed.
Click to expand it.
configure.in
View file @
a7ca2ba7
...
...
@@ -781,6 +781,7 @@ AC_CHECK_FUNCS(\
__libc_fork \
_lwp_create \
clone \
ecvt \
finite \
fpclass \
getnetbyaddr \
...
...
include/config.h.in
View file @
a7ca2ba7
...
...
@@ -178,6 +178,9 @@
/* Define if you have the dlopen function. */
#undef HAVE_DLOPEN
/* Define if you have the ecvt function. */
#undef HAVE_ECVT
/* Define if you have the finite function. */
#undef HAVE_FINITE
...
...
library/port.c
View file @
a7ca2ba7
...
...
@@ -558,3 +558,49 @@ unsigned short* wine_rewrite_s4tos2(const wchar_t* str4 )
return
str2
;
}
#ifndef HAVE_ECVT
/*
* NetBSD 1.5 doesn't have ecvt, fcvt, gcvt. We just check for ecvt, though.
* Fix/verify these implementations !
*/
/***********************************************************************
* ecvt
*/
char
*
ecvt
(
double
number
,
int
ndigits
,
int
*
decpt
,
int
*
sign
)
{
static
buf
[
40
];
/* ought to be enough */
char
*
dec
;
sprintf
(
buf
,
"%.*e"
,
ndigits
/* FIXME wrong */
,
number
);
*
sign
=
(
number
<
0
);
dec
=
strchr
(
buf
,
'.'
);
*
decpt
=
(
dec
)
?
(
int
)
dec
-
(
int
)
buf
:
-
1
;
return
buf
;
}
/***********************************************************************
* fcvt
*/
char
*
fcvt
(
double
number
,
int
ndigits
,
int
*
decpt
,
int
*
sign
)
{
static
buf
[
40
];
/* ought to be enough */
char
*
dec
;
sprintf
(
buf
,
"%.*e"
,
ndigits
,
number
);
*
sign
=
(
number
<
0
);
dec
=
strchr
(
buf
,
'.'
);
*
decpt
=
(
dec
)
?
(
int
)
dec
-
(
int
)
buf
:
-
1
;
return
buf
;
}
/***********************************************************************
* gcvt
*
* FIXME: uses both E and F.
*/
char
*
gcvt
(
double
number
,
size_t
ndigit
,
char
*
buff
)
{
sprintf
(
buff
,
"%.*E"
,
ndigit
,
number
);
return
buff
;
}
#endif
/* HAVE_ECVT */
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