Skip to content

Commit

Permalink
マクロDUMMYUNION5_MEMBERの対策
Browse files Browse the repository at this point in the history
MinGWのprsht.hに含まれるDUMMYUNION5_MEMBERマクロを独自定義する。

元定義の出所は不詳。
http://en.verysource.com/code/281895_1/priv.h.html に近い定義がある。
  • Loading branch information
berryzplus committed Oct 21, 2018
1 parent a41e6dc commit fbb7f8f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sakura_core/StdAfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
#endif
#endif

// Workaround for PROPSHEETHEADER_V2_SIZE
#if defined(__MINGW32__) && !defined(DUMMYUNION5_MEMBER)
#ifndef NONAMELESSUNION
#define DUMMYUNION5_MEMBER(x) x
#else /* NONAMELESSUNION */
#define DUMMYUNION5_MEMBER(x) DUMMYUNIONNAME5.x
#endif
#endif


//グローバル
#include "_main/global.h"

Expand Down

0 comments on commit fbb7f8f

Please sign in to comment.