Skip to content

Commit

Permalink
Merge pull request #1089 from raymens/fix-windows
Browse files Browse the repository at this point in the history
Fix windows (VS) compile errors.

Reviewed-by: jedmccaleb
  • Loading branch information
latobarita authored Nov 10, 2016
2 parents 4a8323d + 4d29957 commit 0f7b81c
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Builds/VisualStudio2015/stellar-core.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>src;../../src;../../lib;../../lib/libmedida/src;../../lib/soci/src/core;../../lib/autocheck/include;../../lib/cereal/include;../../lib/asio/include;../../lib/xdrpp;../../lib/libsodium/src/libsodium/include;../..;src/generated;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NOMINMAX;ASIO_STANDALONE;USE_POSTGRES;_WINSOCK_DEPRECATED_NO_WARNINGS;SODIUM_STATIC;ASIO_SEPARATE_COMPILATION;ASIO_ERROR_CATEGORY_NOEXCEPT=noexcept;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0501;WIN32;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOMINMAX;ASIO_STANDALONE;USE_POSTGRES;_WINSOCK_DEPRECATED_NO_WARNINGS;SODIUM_STATIC;ASIO_SEPARATE_COMPILATION;ASIO_ERROR_CATEGORY_NOEXCEPT=noexcept;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0501;WIN32;_MBCS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<MinimalRebuild>false</MinimalRebuild>
<DisableSpecificWarnings>4060;4100;4127;4324;4408;4510;4512;4582;4583;4592</DisableSpecificWarnings>
Expand Down Expand Up @@ -109,7 +109,7 @@
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<AdditionalIncludeDirectories>src;../../src;../../lib;../../lib/libmedida/src;../../lib/soci/src/core;../../lib/autocheck/include;../../lib/cereal/include;../../lib/asio/include;../../lib/xdrpp;../../lib/libsodium/src/libsodium/include;../..;src/generated;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NOMINMAX;ASIO_STANDALONE;USE_POSTGRES;_WINSOCK_DEPRECATED_NO_WARNINGS;SODIUM_STATIC;ASIO_SEPARATE_COMPILATION;ASIO_ERROR_CATEGORY_NOEXCEPT=noexcept;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0501;WIN32;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NOMINMAX;ASIO_STANDALONE;USE_POSTGRES;_WINSOCK_DEPRECATED_NO_WARNINGS;SODIUM_STATIC;ASIO_SEPARATE_COMPILATION;ASIO_ERROR_CATEGORY_NOEXCEPT=noexcept;_CRT_SECURE_NO_WARNINGS;_WIN32_WINNT=0x0501;WIN32;_MBCS;_CRT_NONSTDC_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BrowseInformation>false</BrowseInformation>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<DisableSpecificWarnings>4060;4100;4127;4324;4408;4510;4512;4582;4583;4592</DisableSpecificWarnings>
Expand Down Expand Up @@ -238,8 +238,11 @@
</ClCompile>
<ClCompile Include="..\..\src\main\Application.cpp" />
<ClCompile Include="..\..\src\main\ApplicationImpl.cpp" />
<ClCompile Include="..\..\src\main\ApplicationTests.cpp" />
<ClCompile Include="..\..\src\main\ConfigTests.cpp" />
<ClCompile Include="..\..\src\main\dumpxdr.cpp" />
<ClCompile Include="..\..\src\main\fuzz.cpp" />
<ClCompile Include="..\..\src\main\NtpSynchronizationChecker.cpp" />
<ClCompile Include="..\..\src\main\PersistentState.cpp" />
<ClCompile Include="..\..\src\main\ExternalQueue.cpp" />
<ClCompile Include="..\..\src\overlay\BanManagerImpl.cpp" />
Expand Down Expand Up @@ -291,6 +294,10 @@
<ClCompile Include="..\..\src\util\GlobalChecks.cpp" />
<ClCompile Include="..\..\src\util\HashOfHash.cpp" />
<ClCompile Include="..\..\src\util\Math.cpp" />
<ClCompile Include="..\..\src\util\NtpClient.cpp" />
<ClCompile Include="..\..\src\util\NtpWork.cpp" />
<ClCompile Include="..\..\src\util\StatusManager.cpp" />
<ClCompile Include="..\..\src\util\StatusManagerTest.cpp" />
<ClCompile Include="..\..\src\util\TmpDir.cpp" />
<ClCompile Include="..\..\src\util\Timer.cpp" />
<ClCompile Include="..\..\src\util\TimerTests.cpp" />
Expand Down Expand Up @@ -341,6 +348,7 @@
<ClInclude Include="..\..\src\history\StateSnapshot.h" />
<ClInclude Include="..\..\src\ledger\LedgerTestUtils.h" />
<ClInclude Include="..\..\src\main\ExternalQueue.h" />
<ClInclude Include="..\..\src\main\NtpSynchronizationChecker.h" />
<ClInclude Include="..\..\src\overlay\BanManager.h" />
<ClInclude Include="..\..\src\overlay\BanManagerImpl.h" />
<ClInclude Include="..\..\src\overlay\LoadManager.h" />
Expand Down Expand Up @@ -434,7 +442,10 @@
<ClInclude Include="..\..\src\util\Math.h" />
<ClInclude Include="..\..\src\util\must_use.h" />
<ClInclude Include="..\..\src\util\NonCopyable.h" />
<ClInclude Include="..\..\src\util\NtpClient.h" />
<ClInclude Include="..\..\src\util\NtpWork.h" />
<ClInclude Include="..\..\src\util\optional.h" />
<ClInclude Include="..\..\src\util\StatusManager.h" />
<ClInclude Include="..\..\src\util\TmpDir.h" />
<ClInclude Include="..\..\src\util\Timer.h" />
<ClInclude Include="..\..\src\util\types.h" />
Expand Down
33 changes: 33 additions & 0 deletions Builds/VisualStudio2015/stellar-core.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,27 @@
<ClCompile Include="..\..\src\overlay\BanManagerImpl.cpp">
<Filter>overlay</Filter>
</ClCompile>
<ClCompile Include="..\..\src\util\NtpClient.cpp">
<Filter>util</Filter>
</ClCompile>
<ClCompile Include="..\..\src\util\NtpWork.cpp">
<Filter>util</Filter>
</ClCompile>
<ClCompile Include="..\..\src\util\StatusManager.cpp">
<Filter>util</Filter>
</ClCompile>
<ClCompile Include="..\..\src\util\StatusManagerTest.cpp">
<Filter>util</Filter>
</ClCompile>
<ClCompile Include="..\..\src\main\ApplicationTests.cpp">
<Filter>main</Filter>
</ClCompile>
<ClCompile Include="..\..\src\main\ConfigTests.cpp">
<Filter>main</Filter>
</ClCompile>
<ClCompile Include="..\..\src\main\NtpSynchronizationChecker.cpp">
<Filter>main</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\ledger\LedgerManager.h">
Expand Down Expand Up @@ -923,6 +944,18 @@
<ClInclude Include="..\..\src\overlay\BanManagerImpl.h">
<Filter>overlay</Filter>
</ClInclude>
<ClInclude Include="..\..\src\util\NtpClient.h">
<Filter>util</Filter>
</ClInclude>
<ClInclude Include="..\..\src\util\NtpWork.h">
<Filter>util</Filter>
</ClInclude>
<ClInclude Include="..\..\src\util\StatusManager.h">
<Filter>util</Filter>
</ClInclude>
<ClInclude Include="..\..\src\main\NtpSynchronizationChecker.h">
<Filter>main</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\AUTHORS" />
Expand Down
1 change: 1 addition & 0 deletions src/bucket/BucketApplicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0

#include "util/asio.h"
#include "bucket/Bucket.h"
#include "bucket/BucketApplicator.h"
#include "ledger/LedgerDelta.h"
Expand Down
1 change: 1 addition & 0 deletions src/history/HistoryWork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0

#include "util/asio.h"
#include "bucket/BucketApplicator.h"
#include "bucket/BucketManager.h"
#include "crypto/Hex.h"
Expand Down
3 changes: 3 additions & 0 deletions src/main/dumpxdr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ extern "C" {

#if MSVC
#include <io.h>
#include <fcntl.h>
#include <BaseTsd.h>
#define isatty _isatty
typedef SSIZE_T ssize_t;
#endif // MSVC

namespace stellar
Expand Down

0 comments on commit 0f7b81c

Please sign in to comment.