fixed visual studio project
This commit is contained in:
parent
7ba7201d3a
commit
171d5c4763
@ -40,10 +40,8 @@
|
|||||||
<ClCompile Include="src\String\StringBuilder.c" />
|
<ClCompile Include="src\String\StringBuilder.c" />
|
||||||
<ClCompile Include="tests\main.cpp" />
|
<ClCompile Include="tests\main.cpp" />
|
||||||
<ClCompile Include="tests\test_autoarr.c" />
|
<ClCompile Include="tests\test_autoarr.c" />
|
||||||
<ClCompile Include="tests\test_autoarr2.cpp" />
|
|
||||||
<ClCompile Include="tests\test_dtsod.c" />
|
<ClCompile Include="tests\test_dtsod.c" />
|
||||||
<ClCompile Include="tests\test_hashtable.c" />
|
<ClCompile Include="tests\test_hashtable.c" />
|
||||||
<ClCompile Include="tests\test_hashtable2.cpp" />
|
|
||||||
<ClCompile Include="tests\test_hash_functions.c" />
|
<ClCompile Include="tests\test_hash_functions.c" />
|
||||||
<ClCompile Include="tests\test_marshalling.c" />
|
<ClCompile Include="tests\test_marshalling.c" />
|
||||||
<ClCompile Include="tests\test_network.c" />
|
<ClCompile Include="tests\test_network.c" />
|
||||||
@ -52,7 +50,6 @@
|
|||||||
<ClCompile Include="tests\test_string.c" />
|
<ClCompile Include="tests\test_string.c" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="src\Autoarr2\Autoarr2.hpp" />
|
|
||||||
<ClInclude Include="src\Autoarr\Autoarr.h" />
|
<ClInclude Include="src\Autoarr\Autoarr.h" />
|
||||||
<ClInclude Include="src\Autoarr\Autoarr_declare.h" />
|
<ClInclude Include="src\Autoarr\Autoarr_declare.h" />
|
||||||
<ClInclude Include="src\Autoarr\Autoarr_define.h" />
|
<ClInclude Include="src\Autoarr\Autoarr_define.h" />
|
||||||
@ -64,7 +61,6 @@
|
|||||||
<ClInclude Include="src\base\types.h" />
|
<ClInclude Include="src\base\types.h" />
|
||||||
<ClInclude Include="src\DtsodParser\DtsodV24.h" />
|
<ClInclude Include="src\DtsodParser\DtsodV24.h" />
|
||||||
<ClInclude Include="src\HashFunctions\hash.h" />
|
<ClInclude Include="src\HashFunctions\hash.h" />
|
||||||
<ClInclude Include="src\Hashtable2\Hashtable2.hpp" />
|
|
||||||
<ClInclude Include="src\Hashtable\Hashtable.h" />
|
<ClInclude Include="src\Hashtable\Hashtable.h" />
|
||||||
<ClInclude Include="src\Hashtable\KeyValuePair.h" />
|
<ClInclude Include="src\Hashtable\KeyValuePair.h" />
|
||||||
<ClInclude Include="src\Network\knAddress.h" />
|
<ClInclude Include="src\Network\knAddress.h" />
|
||||||
@ -169,9 +165,9 @@
|
|||||||
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
||||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||||
<PrecompiledHeaderOutputFile />
|
<PrecompiledHeaderOutputFile />
|
||||||
<AdditionalOptions>/Zc:twoPhase- /MP %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zc:twoPhase- /MP -fms-compatibility-version=14 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<CompileAs>Default</CompileAs>
|
<CompileAs>Default</CompileAs>
|
||||||
<LanguageStandard>stdcpp20</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<DebugInformationFormat>None</DebugInformationFormat>
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -195,10 +191,10 @@
|
|||||||
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
||||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||||
<PrecompiledHeaderOutputFile />
|
<PrecompiledHeaderOutputFile />
|
||||||
<AdditionalOptions>/Zc:twoPhase- /MP %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zc:twoPhase- /MP -fms-compatibility-version=14 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
<CompileAs>Default</CompileAs>
|
<CompileAs>Default</CompileAs>
|
||||||
<LanguageStandard>stdcpp20</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<DebugInformationFormat>None</DebugInformationFormat>
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
@ -221,9 +217,9 @@
|
|||||||
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
||||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||||
<PrecompiledHeaderOutputFile />
|
<PrecompiledHeaderOutputFile />
|
||||||
<AdditionalOptions>/Zc:twoPhase- /MP %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zc:twoPhase- /MP -fms-compatibility-version=14 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<CompileAs>Default</CompileAs>
|
<CompileAs>Default</CompileAs>
|
||||||
<LanguageStandard>stdcpp20</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<DebugInformationFormat>None</DebugInformationFormat>
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
|
<TreatAngleIncludeAsExternal>true</TreatAngleIncludeAsExternal>
|
||||||
<DisableAnalyzeExternal>true</DisableAnalyzeExternal>
|
<DisableAnalyzeExternal>true</DisableAnalyzeExternal>
|
||||||
@ -248,10 +244,10 @@
|
|||||||
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
<LanguageStandard_C>stdc17</LanguageStandard_C>
|
||||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||||
<PrecompiledHeaderOutputFile />
|
<PrecompiledHeaderOutputFile />
|
||||||
<AdditionalOptions>/Zc:twoPhase- /MP %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>/Zc:twoPhase- /MP -fms-compatibility-version=14 %(AdditionalOptions)</AdditionalOptions>
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
<CompileAs>Default</CompileAs>
|
<CompileAs>Default</CompileAs>
|
||||||
<LanguageStandard>stdcpp20</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<DebugInformationFormat>None</DebugInformationFormat>
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
|
|||||||
@ -7,7 +7,7 @@ extern "C" {
|
|||||||
#include "network.h"
|
#include "network.h"
|
||||||
|
|
||||||
#if KN_USE_WINSOCK
|
#if KN_USE_WINSOCK
|
||||||
#include "winsock.h"
|
#include <winsock2.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|||||||
@ -49,18 +49,8 @@ extern "C" {
|
|||||||
#pragma GCC error "unknown compiler"
|
#pragma GCC error "unknown compiler"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NULL
|
|
||||||
#define NULL ((void*)0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#define PACK(...) __VA_ARGS__ __attribute__((__packed__))
|
|
||||||
#elif defined(_MSC_VER)
|
|
||||||
#define PACK(...) __pragma(pack(push, 1)) __VA_ARGS__ __pragma(pack(pop))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
#define PACK(...) __VA_ARGS__ __attribute__((__packed__))
|
||||||
|
|
||||||
#if __cplusplus
|
#if __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user