Re: d3dx9_36: Provide a replacement for signbit() if it is missing.
12 Jul
2011
12 Jul
'11
10:37 a.m.
Francois Gouget <fgouget(a)codeweavers.com> writes:
@@ -292,6 +292,10 @@ ssize_t pwrite( int fd, const void *buf, size_t count, off_t offset ); int readlink( const char *path, char *buf, size_t size ); #endif /* HAVE_READLINK */
+#ifndef HAVE_SIGNBIT +#define signbit(x) (copysign(1, (x)) < 0) +#endif /* !defined(HAVE_SIGNBIT) */
This isn't quite correct for floats, and it's not much more portable. I'd suggest to fix the code instead. -- Alexandre Julliard julliard(a)winehq.org
5268
Age (days ago)
5268
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard