Windows compiles! (w/Visual Studio 2012) That's about all it does, but it's a start.
This commit is contained in:
parent
5076c75b07
commit
d6414c9ff7
30 changed files with 191 additions and 87 deletions
|
@ -68,6 +68,9 @@
|
|||
#ifndef __WINDOWS__
|
||||
#define __WINDOWS__
|
||||
#endif
|
||||
#define NOMINMAX
|
||||
#pragma warning(disable : 4290)
|
||||
#pragma warning(disable : 4996)
|
||||
#undef __UNIX_LIKE__
|
||||
#define ZT_PATH_SEPARATOR '\\'
|
||||
#define ZT_PATH_SEPARATOR_S "\\"
|
||||
|
@ -96,11 +99,23 @@
|
|||
error_no_byte_order_defined;
|
||||
#endif
|
||||
#ifndef ZT_OSNAME
|
||||
error_no_ZT_OSNAME_defined;
|
||||
#ifdef __WINDOWS__
|
||||
#define ZT_OSNAME "windows"
|
||||
#else
|
||||
no ZT_OSNAME defined;
|
||||
#endif
|
||||
#endif
|
||||
#ifndef ZT_ARCH
|
||||
#ifdef __WINDOWS__
|
||||
#ifdef _WIN64
|
||||
#define ZT_ARCH "x64"
|
||||
#else
|
||||
#define ZT_ARCH "x86"
|
||||
#endif
|
||||
#else
|
||||
error_no_ZT_ARCH_defined;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Length of a ZeroTier address in bytes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue