about summary refs log tree commit diff
path: root/library/std/src/sys/windows/compat.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2023-07-04 19:45:58 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2023-07-05 13:11:26 +0200
commit9dbe67fc8c722bc8df4a6a792677a93a073773f4 (patch)
treec8e4b58cbe987500fea2e9f54ae3e575c25b73c5 /library/std/src/sys/windows/compat.rs
parent5b25f9d8bdb4a5ffdaed4fb6ebdc521c6eba1b0f (diff)
downloadrust-9dbe67fc8c722bc8df4a6a792677a93a073773f4.tar.gz
rust-9dbe67fc8c722bc8df4a6a792677a93a073773f4.zip
Revert "use c literals in library"
This reverts commit f212ba6d6d60963c8101bb24fc3e53fca80c046f.
Diffstat (limited to 'library/std/src/sys/windows/compat.rs')
-rw-r--r--library/std/src/sys/windows/compat.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/windows/compat.rs b/library/std/src/sys/windows/compat.rs
index 649cc4bfdbf..4fe95d41116 100644
--- a/library/std/src/sys/windows/compat.rs
+++ b/library/std/src/sys/windows/compat.rs
@@ -228,9 +228,9 @@ macro_rules! compat_fn_optional {
 /// Load all needed functions from "api-ms-win-core-synch-l1-2-0".
 pub(super) fn load_synch_functions() {
     fn try_load() -> Option<()> {
-        const MODULE_NAME: &CStr = c"api-ms-win-core-synch-l1-2-0";
-        const WAIT_ON_ADDRESS: &CStr = c"WaitOnAddress";
-        const WAKE_BY_ADDRESS_SINGLE: &CStr = c"WakeByAddressSingle";
+        const MODULE_NAME: &CStr = ansi_str!("api-ms-win-core-synch-l1-2-0");
+        const WAIT_ON_ADDRESS: &CStr = ansi_str!("WaitOnAddress");
+        const WAKE_BY_ADDRESS_SINGLE: &CStr = ansi_str!("WakeByAddressSingle");
 
         // Try loading the library and all the required functions.
         // If any step fails, then they all fail.