Added workaround for "Internal compiler error" with old gcc(-2.8).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -210,7 +210,10 @@
|
|||||||
wxFAIL_COND_MSG(#cond, msg); \
|
wxFAIL_COND_MSG(#cond, msg); \
|
||||||
op; \
|
op; \
|
||||||
} \
|
} \
|
||||||
struct wxDummyCheckStruct /* just to force a semicolon */
|
typedef int wxDummyCheckInt /* just to force a semicolon */
|
||||||
|
/* NB: old gcc versions (e.g. 2.8) give an internal compiler error */
|
||||||
|
/* on a simple forward declaration, when used in a template */
|
||||||
|
/* function, so rather use a dummy typedef which does work... */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* special form of wxCHECK2: as wxCHECK, but for use in void functions */
|
/* special form of wxCHECK2: as wxCHECK, but for use in void functions */
|
||||||
|
Reference in New Issue
Block a user