summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/winapi/test/run/environment_abi.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/boost/libs/winapi/test/run/environment_abi.cpp
parentInitial commit. (diff)
downloadceph-upstream.tar.xz
ceph-upstream.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/libs/winapi/test/run/environment_abi.cpp')
-rw-r--r--src/boost/libs/winapi/test/run/environment_abi.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/boost/libs/winapi/test/run/environment_abi.cpp b/src/boost/libs/winapi/test/run/environment_abi.cpp
new file mode 100644
index 00000000..8c38b2ee
--- /dev/null
+++ b/src/boost/libs/winapi/test/run/environment_abi.cpp
@@ -0,0 +1,40 @@
+/*
+ * Copyright Andrey Semashev 2018.
+ * Distributed under the Boost Software License, Version 1.0.
+ * (See accompanying file LICENSE_1_0.txt or copy at
+ * http://www.boost.org/LICENSE_1_0.txt)
+ */
+/*!
+ * \file environment_abi.cpp
+ * \author Andrey Semashev
+ * \date 09.03.2018
+ *
+ * \brief This file contains ABI test for environment.hpp
+ */
+
+#include <boost/winapi/environment.hpp>
+#include <windows.h>
+#include "abi_test_tools.hpp"
+
+#undef GetEnvironmentStrings
+
+int main()
+{
+#if BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM
+
+#if !defined(BOOST_NO_ANSI_APIS)
+ BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(GetEnvironmentStrings);
+ BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(FreeEnvironmentStringsA);
+ BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(GetEnvironmentVariableA);
+ BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(SetEnvironmentVariableA);
+#endif // !defined(BOOST_NO_ANSI_APIS)
+
+ BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(GetEnvironmentStringsW);
+ BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(FreeEnvironmentStringsW);
+ BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(GetEnvironmentVariableW);
+ BOOST_WINAPI_TEST_FUNCTION_SIGNATURE(SetEnvironmentVariableW);
+
+#endif // BOOST_WINAPI_PARTITION_DESKTOP || BOOST_WINAPI_PARTITION_SYSTEM
+
+ return boost::report_errors();
+}