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
a774152f
Commit
a774152f
authored
May 24, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
port: Add isinf and isnan implementations for Visual Studio.
parent
cf757a63
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
0 deletions
+26
-0
configure
configure
+2
-0
configure.ac
configure.ac
+2
-0
config.h.in
include/config.h.in
+6
-0
isinf.c
libs/port/isinf.c
+8
-0
isnan.c
libs/port/isnan.c
+8
-0
No files found.
configure
View file @
a774152f
...
...
@@ -12803,6 +12803,8 @@ esac
ac_save_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
"
$CFLAGS
$BUILTINFLAG
"
for
ac_func
in
\
_finite
\
_isnan
\
_pclose
\
_popen
\
_snprintf
\
...
...
configure.ac
View file @
a774152f
...
...
@@ -1939,6 +1939,8 @@ dnl **** Check for functions ****
ac_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $BUILTINFLAG"
AC_CHECK_FUNCS(\
_finite \
_isnan \
_pclose \
_popen \
_snprintf \
...
...
include/config.h.in
View file @
a774152f
...
...
@@ -1151,6 +1151,12 @@
/* Define to 1 if you have the <zlib.h> header file. */
#undef HAVE_ZLIB_H
/* Define to 1 if you have the `_finite' function. */
#undef HAVE__FINITE
/* Define to 1 if you have the `_isnan' function. */
#undef HAVE__ISNAN
/* Define to 1 if you have the `_pclose' function. */
#undef HAVE__PCLOSE
...
...
libs/port/isinf.c
View file @
a774152f
...
...
@@ -31,6 +31,14 @@ int isinf(double x)
return
(
!
(
finite
(
x
)
||
isnand
(
x
)));
}
#elif defined(HAVE_FLOAT_H) && defined(HAVE__ISNAN) && defined(HAVE__FINITE)
#include <float.h>
int
isinf
(
double
x
)
{
return
(
!
(
_finite
(
x
)
||
_isnan
(
x
)));
}
#else
#error No isinf() implementation available.
#endif
...
...
libs/port/isnan.c
View file @
a774152f
...
...
@@ -31,6 +31,14 @@ int isnan(double x)
return
isnand
(
x
);
}
#elif defined(HAVE_FLOAT_H) && defined(HAVE__ISNAN)
#include <float.h>
int
isnan
(
double
x
)
{
return
_isnan
(
x
);
}
#else
#error No isnan() implementation available.
#endif
...
...
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