Ifdef these to stop non-Windows IDEs from complaining.

This commit is contained in:
Adam Ierymenko 2019-08-23 10:34:37 -07:00
parent 86add4a6d3
commit 51ebefc3ab
No known key found for this signature in database
GPG Key ID: 1657198823E52A61
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,8 @@
#pragma region Includes
#if defined(_WIN32) || defined(_WIN64)
#include <WinSock2.h>
#include <Windows.h>
#include <stdio.h>
@ -150,3 +152,5 @@ void ZeroTierOneService::OnShutdown()
// stop thread on system shutdown (if it hasn't happened already)
OnStop();
}
#endif

View File

@ -13,6 +13,8 @@
#pragma once
#if defined(_WIN32) || defined(_WIN64)
#include <stdio.h>
#include "ServiceBase.h"
@ -64,3 +66,5 @@ private:
ZeroTier::Mutex _lock;
ZeroTier::Thread _thread;
};
#endif