summaryrefslogtreecommitdiff
path: root/boost/detail/winapi/process.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/detail/winapi/process.hpp')
-rw-r--r--boost/detail/winapi/process.hpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/boost/detail/winapi/process.hpp b/boost/detail/winapi/process.hpp
index de287b15fc..3c3de56e3e 100644
--- a/boost/detail/winapi/process.hpp
+++ b/boost/detail/winapi/process.hpp
@@ -16,21 +16,19 @@
#pragma once
#endif
-namespace boost {
-namespace detail {
-namespace winapi {
-#if defined( BOOST_USE_WINDOWS_H )
- using ::GetCurrentProcessId;
-#else
-# ifndef UNDER_CE
+// Windows CE define GetCurrentProcessId as an inline function in kfuncs.h
+#if !defined( BOOST_USE_WINDOWS_H ) && !defined( UNDER_CE )
extern "C" {
- __declspec(dllimport) DWORD_ WINAPI GetCurrentProcessId(void);
+BOOST_SYMBOL_IMPORT boost::detail::winapi::DWORD_ WINAPI GetCurrentProcessId(BOOST_DETAIL_WINAPI_VOID);
}
-# else
- using ::GetCurrentProcessId;
-# endif
#endif
+
+namespace boost {
+namespace detail {
+namespace winapi {
+using ::GetCurrentProcessId;
}
}
}
+
#endif // BOOST_DETAIL_WINAPI_PROCESS_HPP