freebsd-ports/lang/dmd1/files/patch-src-dmd-root-port.c
Cy Schubert f53bb29eca lang/dmd is no longer the primary dmd port as it is no longer supported
by digitalmars.com. It logically switches places with dmd2. dmd2 retains
the dmd2 name while lang/dmd is renamed to dmd1.
2014-04-14 19:46:59 +00:00

29 lines
649 B
C

--- ../../src/dmd/root/port.c.orig 2012-12-31 12:16:46.000000000 -0800
+++ ../../src/dmd/root/port.c 2013-09-27 22:41:16.360128824 -0700
@@ -386,7 +386,7 @@
#else
return __inline_isnan(r);
#endif
-#elif __OpenBSD__
+#elif __OpenBSD__ || __FreeBSD__
return isnan(r);
#else
#undef isnan
@@ -402,7 +402,7 @@
#else
return __inline_isnan(r);
#endif
-#elif __OpenBSD__
+#elif __OpenBSD__ || __FreeBSD__
return isnan(r);
#else
#undef isnan
@@ -436,7 +436,7 @@
{
#if __APPLE__
return fpclassify(r) == FP_INFINITE;
-#elif __OpenBSD__
+#elif __OpenBSD__ || __FreeBSD__
return isinf(r);
#else
#undef isinf