uwp fixes
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/ccpp.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/ccpp.yml
									
									
									
									
										vendored
									
									
								
							| @@ -60,7 +60,7 @@ jobs: | ||||
|     - run: | | ||||
|         mkdir build | ||||
|         cd build | ||||
|         cmake -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0" -DCMAKE_CXX_COMPILER=cl.exe -DUSE_WS=1 -DUSE_TEST=1 .. | ||||
|         cmake -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0" -DCMAKE_CXX_COMPILER=cl.exe -DUSE_TEST=1 .. | ||||
|     - run: cmake --build build | ||||
|  | ||||
| # | ||||
|   | ||||
| @@ -13,6 +13,9 @@ | ||||
| #ifdef _UNICODE | ||||
| #undef _UNICODE | ||||
| #endif | ||||
| #ifdef UNICODE | ||||
| #undef UNICODE | ||||
| #endif | ||||
|  | ||||
| #include "IXDNSLookup.h" | ||||
|  | ||||
|   | ||||
| @@ -4,6 +4,14 @@ | ||||
|  *  Copyright (c) 2019 Machine Zone. All rights reserved. | ||||
|  */ | ||||
|  | ||||
| // Using inet_addr will trigger an error on uwp without this  | ||||
| // FIXME: use a different api | ||||
| #ifdef _WIN32 | ||||
| #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS | ||||
| #define _WINSOCK_DEPRECATED_NO_WARNINGS | ||||
| #endif | ||||
| #endif | ||||
|  | ||||
| #include "IXGetFreePort.h" | ||||
|  | ||||
| #include <ixwebsocket/IXNetSystem.h> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user