summaryrefslogtreecommitdiff
path: root/ACE/tests/Naming_Test.cpp
diff options
context:
space:
mode:
authorLuke Mewburn <Luke@Mewburn.net>2022-09-10 16:30:54 +1000
committerLuke Mewburn <Luke@Mewburn.net>2022-09-10 16:30:54 +1000
commit2be659384defe6b235e020f03a7d683c80a16c7e (patch)
treec617213074082f7665abbcbb990123755c3d8ed1 /ACE/tests/Naming_Test.cpp
parentf5e5d7759a9314053509d294a4c10827d3946034 (diff)
downloadATCD-2be659384defe6b235e020f03a7d683c80a16c7e.tar.gz
Adapt to ACE_TEXT_PRIs
Use ACE_TEXT_PRIs instead of conditional compilation checking !defined(ACE_WIN32) && defined(ACE_USES_WCHAR).
Diffstat (limited to 'ACE/tests/Naming_Test.cpp')
-rw-r--r--ACE/tests/Naming_Test.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ACE/tests/Naming_Test.cpp b/ACE/tests/Naming_Test.cpp
index 04f183c738c..a593c0adb3c 100644
--- a/ACE/tests/Naming_Test.cpp
+++ b/ACE/tests/Naming_Test.cpp
@@ -257,11 +257,7 @@ run_main (int argc, ACE_TCHAR *argv[])
}
// Set the database name using the pid. mktemp isn't always available.
ACE_OS::snprintf(temp_file, BUFSIZ,
-#if !defined (ACE_WIN32) && defined (ACE_USES_WCHAR)
- ACE_TEXT ("%ls%d"),
-#else
- ACE_TEXT ("%s%d"),
-#endif
+ ACE_TEXT ("%") ACE_TEXT_PRIs ACE_TEXT ("%d"),
pname,
(int)ACE_OS::getpid ());