]> git.llucax.com Git - software/druntime.git/blobdiff - import/stdc/fenv.d
Changed pthread_cleanup to properly account for platform differences. core.thread...
[software/druntime.git] / import / stdc / fenv.d
index 8b2dd8c27b824dea970081367e3be2439455a4e3..cdeb2dae3f5c699a59de9fa39db5e5b149cef9f5 100644 (file)
@@ -64,17 +64,17 @@ else version ( darwin )
 }
 else version ( freebsd )
 {
-        struct fenv_t
-        {
-                ushort __control;
-                ushort __mxcsr_hi;
-                ushort __status;
-                ushort __mxcsr_lo;
-                uint __tag;
-                byte[16] __other;
-        }
+    struct fenv_t
+    {
+        ushort __control;
+        ushort __mxcsr_hi;
+        ushort __status;
+        ushort __mxcsr_lo;
+        uint __tag;
+        byte[16] __other;
+    }
 
-        alias ushort fexcept_t;
+    alias ushort fexcept_t;
 }
 else
 {
@@ -110,6 +110,11 @@ else version( darwin )
     private extern fenv_t _FE_DFL_ENV;
     fenv_t* FE_DFL_ENV = &_FE_DFL_ENV;
 }
+else version( freebsd )
+{
+    private extern fenv_t __fe_dfl_env;
+    fenv_t* FE_DFL_ENV = &__fe_dfl_env;
+}
 else
 {
     static assert( false );