about summary refs log tree commit diff
path: root/library/std/src/sys/cmath/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-22 22:12:08 +0100
committerGitHub <noreply@github.com>2024-01-22 22:12:08 +0100
commit42e1db52acc02cb62f48cd20f3665d6a2ff0f7f4 (patch)
tree4d988f7a50419d03e9ce04e3d8b4b19365eddc13 /library/std/src/sys/cmath/mod.rs
parent042cc7269cc756abccc89820755c2c05a33b2b6b (diff)
parentf88e64343e4f9c9ec40c5e7c2c0bcd27ff6052bd (diff)
downloadrust-42e1db52acc02cb62f48cd20f3665d6a2ff0f7f4.tar.gz
rust-42e1db52acc02cb62f48cd20f3665d6a2ff0f7f4.zip
Rollup merge of #120109 - joboet:move_pal_cmath, r=ChrisDenton
Move cmath into `sys`

Part of #117276.

r? ``@ChrisDenton``
Diffstat (limited to 'library/std/src/sys/cmath/mod.rs')
-rw-r--r--library/std/src/sys/cmath/mod.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/library/std/src/sys/cmath/mod.rs b/library/std/src/sys/cmath/mod.rs
new file mode 100644
index 00000000000..79d5021dd8d
--- /dev/null
+++ b/library/std/src/sys/cmath/mod.rs
@@ -0,0 +1,11 @@
+#![cfg(not(test))]
+
+cfg_if::cfg_if! {
+    if #[cfg(target_os = "windows")] {
+        mod windows;
+        pub use windows::*;
+    } else {
+        mod builtins;
+        pub use builtins::*;
+    }
+}