Skip to content

Commit

Permalink
more linux fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdIce1605 committed Mar 19, 2022
1 parent 1b4b4e2 commit 24105a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/DriverFactory.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "DriverFactory.hpp"
#include <thread>
#include <VRDriver.hpp>
#include <Windows.h>
#include <sstream>

static std::shared_ptr<SlimeVRDriver::IVRDriver> driver;
Expand Down
4 changes: 4 additions & 0 deletions src/DriverFactory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

#include <IVRDriver.hpp>

#ifdef WIN32
extern "C" __declspec(dllexport) void* HmdDriverFactory(const char* interface_name, int* return_code);
#else
extern "C" void* HmdDriverFactory(const char* interface_name, int* return_code);
#endif

namespace SlimeVRDriver {
std::shared_ptr<SlimeVRDriver::IVRDriver> GetDriver();
Expand Down
2 changes: 1 addition & 1 deletion src/HMDDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void SlimeVRDriver::HMDDevice::EnterStandby()

void* SlimeVRDriver::HMDDevice::GetComponent(const char* pchComponentNameAndVersion)
{
if (!_stricmp(pchComponentNameAndVersion, vr::IVRDisplayComponent_Version)) {
if (!std::strcmp(pchComponentNameAndVersion, vr::IVRDisplayComponent_Version)) {
return static_cast<vr::IVRDisplayComponent*>(this);
}
return nullptr;
Expand Down

0 comments on commit 24105a5

Please sign in to comment.