diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 6e3711d60a..de1e72bfc7 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2461,13 +2461,15 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo ///Platform test function not staying for final code void Application::initializePlatform() { - //init the platform + //init the platform platform::create(); - //run the enumeration + //run the enumeration if (platform::enumerateProcessors()) { for (int i = 0; i < platform::getNumProcessor(); i++) { - platform::getProcessor(i); + std::string test = platform::getProcessor(i).dump(); + + qDebug() << test.c_str(); } } } diff --git a/libraries/platform/src/WINPlatform.h b/libraries/platform/src/WINPlatform.h index f03fb2c95a..1579767b60 100644 --- a/libraries/platform/src/WINPlatform.h +++ b/libraries/platform/src/WINPlatform.h @@ -6,7 +6,9 @@ // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // -#pragma once +#ifndef hifi_WinPlatform_h +#define hifi_WinPlatform_h + #include "platform.h" #include @@ -25,4 +27,6 @@ namespace platform { int getTotalSystemRam(); }; -} // namespace platform \ No newline at end of file +} // namespace platform + +#endif //hifi_winplatform_h \ No newline at end of file diff --git a/libraries/platform/src/platform.h b/libraries/platform/src/platform.h index 3dfb2f2b14..d539db4387 100644 --- a/libraries/platform/src/platform.h +++ b/libraries/platform/src/platform.h @@ -6,7 +6,9 @@ // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // -#pragma once +#ifndef hifi_Platform_h +#define hifi_Platform_h + #include #include #include @@ -41,4 +43,6 @@ nlohmann::json getProcessor(int index); int getNumMemory(); nlohmann::json getSystemRam(int index); -} // namespace platform \ No newline at end of file +} // namespace platform + +#endif // hifi_platform_h \ No newline at end of file