Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on FreeBSD 10 #584

Closed
sumo opened this issue Feb 25, 2014 · 2 comments
Closed

Build fails on FreeBSD 10 #584

sumo opened this issue Feb 25, 2014 · 2 comments

Comments

@sumo
Copy link

sumo commented Feb 25, 2014

Due to clang's different handling of "collision between C99 and C++11"

Sorry don't have the capability to create a pull and commit so patch is:

diff --git a/dmd2/root/port.c b/dmd2/root/port.c
index 044f244..53b522b 100644
--- a/dmd2/root/port.c
+++ b/dmd2/root/port.c
@@ -600,7 +600,7 @@ int Port::isNan(double r)
 #else
     return __inline_isnan(r);
 #endif
-#elif __HAIKU__ || __OpenBSD__
+#elif __HAIKU__ || __OpenBSD__ || __FreeBSD__
     return isnan(r);
 #else
     #undef isnan
@@ -616,7 +616,7 @@ int Port::isNan(longdouble r)
 #else
     return __inline_isnan(r);
 #endif
-#elif __HAIKU__ || __OpenBSD__
+#elif __HAIKU__ || __OpenBSD__ || __FreeBSD__
     return isnan(r);
 #else
     #undef isnan
@@ -652,7 +652,7 @@ int Port::isInfinity(double r)
 {
 #if __APPLE__
     return fpclassify(r) == FP_INFINITE;
-#elif defined __HAIKU__ || __OpenBSD__
+#elif defined __HAIKU__ || __OpenBSD__ || __FreeBSD__
     return isinf(r);
 #else
     #undef isinf
@redstar
Copy link
Member

redstar commented Feb 26, 2014

Thanks for providing the code. I apply it as soon as I have full online access again. (Should be start of next week.)

redstar added a commit that referenced this issue Mar 4, 2014
@redstar
Copy link
Member

redstar commented Mar 5, 2014

Is now fixed on all branches. Thanks for the report.

@redstar redstar closed this as completed Mar 5, 2014
redstar pushed a commit that referenced this issue Sep 27, 2014
Thread.sleep for windows: for non-zero timeout, sleep at least 1ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants