mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 06:05:53 +08:00
Move the function ptree_get_value() inside _WIN32 ifdef.
This commit is contained in:
parent
124ce1c31f
commit
ca811aaa7d
@ -24,6 +24,8 @@
|
|||||||
#endif //__linux__
|
#endif //__linux__
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
bool ptree_get_value(const boost::property_tree::ptree& pt, const std::string& target, std::string& result)
|
bool ptree_get_value(const boost::property_tree::ptree& pt, const std::string& target, std::string& result)
|
||||||
{
|
{
|
||||||
// Check if the current node has the target element
|
// Check if the current node has the target element
|
||||||
@ -41,7 +43,7 @@ bool ptree_get_value(const boost::property_tree::ptree& pt, const std::string& t
|
|||||||
|
|
||||||
return false; // Element not found in this subtree
|
return false; // Element not found in this subtree
|
||||||
}
|
}
|
||||||
#ifdef _WIN32
|
|
||||||
// Fill SSID map. Implementation from Raspberry Pi imager and Win32 Api examples.
|
// Fill SSID map. Implementation from Raspberry Pi imager and Win32 Api examples.
|
||||||
// https://github.com/raspberrypi/rpi-imager/blob/qml/src/windows/winwlancredentials.cpp
|
// https://github.com/raspberrypi/rpi-imager/blob/qml/src/windows/winwlancredentials.cpp
|
||||||
// https://learn.microsoft.com/en-us/windows/win32/api/wlanapi/nf-wlanapi-wlangetavailablenetworklist
|
// https://learn.microsoft.com/en-us/windows/win32/api/wlanapi/nf-wlanapi-wlangetavailablenetworklist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user