Skip to content

Commit

Permalink
Merge pull request #48 from berryzplus/feature/reduce_build_warnings
Browse files Browse the repository at this point in the history
ビルド時警告の削減
  • Loading branch information
kobake authored Jun 5, 2018
2 parents 6f23813 + e95b024 commit d604be1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions HeaderMake/HeaderMake.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand Down
1 change: 1 addition & 0 deletions MakefileMake/MakefileMake.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand Down
1 change: 1 addition & 0 deletions sakura/sakura.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<TargetMachine>MachineX86</TargetMachine>
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
</Link>
<PostBuildEvent>
<Command>call postBuild.bat "$(TargetPath).manifest"</Command>
Expand Down
14 changes: 13 additions & 1 deletion sakura_core/apiwrap/StdApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@
#ifndef SAKURA_STDAPI_85471C2C_6AEE_410D_BD09_A59056A5BA68_H_
#define SAKURA_STDAPI_85471C2C_6AEE_410D_BD09_A59056A5BA68_H_

#include <ImageHlp.h> //MakeSureDirectoryPathExists

//ランタイム情報ライブラリにアクセスするWindowsヘッダを参照する
//c++規格への準拠が厳しくなったため、WindowsSDKが無名enumをtypedefするコードが怒られる。
#if defined(_MSC_VER) && _MSC_VER >= 1900
//一時的に警告を無効にしてインクルードする
#pragma warning(push)
#pragma warning(disable:4091)
#include <ImageHlp.h> //MakeSureDirectoryPathExists
#pragma warning(pop)
#else
#include <ImageHlp.h> //MakeSureDirectoryPathExists
#endif


//デバッグ用。
//VistaだとExtTextOutの結果が即反映されない。この関数を用いると即反映されるので、
Expand Down

0 comments on commit d604be1

Please sign in to comment.