Browse Source

Fix preprocessor expression

The "and" and "or" keywords are only defined if <iso646.h> is included.

This fixes the C4067 warnings.
pull/16/head
Simon Richter 6 years ago
committed by Ian McInerney
parent
commit
0f105c4c9a
  1. 4
      common/cursor_store.cpp

4
common/cursor_store.cpp

@ -39,7 +39,7 @@
*/ */
wxCursor constructCursor( const CURSOR_STORE::CURSOR_DEF& aDef ) wxCursor constructCursor( const CURSOR_STORE::CURSOR_DEF& aDef )
{ {
#if defined( __WXMSW__ ) or defined( __WXMAC__ )
#if defined( __WXMSW__ ) || defined( __WXMAC__ )
wxBitmap img_bitmap( wxBitmap img_bitmap(
reinterpret_cast<const char*>( aDef.m_image_data ), aDef.m_size.x, aDef.m_size.y ); reinterpret_cast<const char*>( aDef.m_image_data ), aDef.m_size.x, aDef.m_size.y );
@ -58,7 +58,7 @@ wxCursor constructCursor( const CURSOR_STORE::CURSOR_DEF& aDef )
return wxCursor{ image }; return wxCursor{ image };
#elif defined( __WXGTK__ ) or defined( __WXMOTIF__ )
#elif defined( __WXGTK__ ) || defined( __WXMOTIF__ )
return wxCursor{ return wxCursor{
reinterpret_cast<const char*>( aDef.m_image_data ), reinterpret_cast<const char*>( aDef.m_image_data ),

Loading…
Cancel
Save