# HG changeset patch # User Vin Shelton # Date 1266812444 18000 # Node ID 79564cbad5f3d095cd183b4b761f6d5144f8416d # Parent 24372c7e0e8f5c6b8612a3c3d198b582b44ce4c0 Simplify assertion in events.c so it will build under Visual Studio 6 diff -r 24372c7e0e8f -r 79564cbad5f3 src/ChangeLog --- a/src/ChangeLog Sun Feb 21 20:58:45 2010 -0600 +++ b/src/ChangeLog Sun Feb 21 23:20:44 2010 -0500 @@ -1,3 +1,8 @@ +2010-02-21 Vin Shelton + + * events.c (event_pixel_translation): Simplify assertion for + Visual C 6. + 2010-02-21 Ben Wing * gc.c (kkcc_marking): Fix compile error. diff -r 24372c7e0e8f -r 79564cbad5f3 src/events.c --- a/src/events.c Sun Feb 21 20:58:45 2010 -0600 +++ b/src/events.c Sun Feb 21 23:20:44 2010 -0500 @@ -2134,11 +2134,12 @@ pointer points to random memory, often filled with 0, sometimes not. */ /* #### Chuck, do we still need this crap? */ +#ifdef HAVE_TOOLBARS assert (NILP (ret_obj1) || GLYPHP (ret_obj1) -#ifdef HAVE_TOOLBARS - || TOOLBAR_BUTTONP (ret_obj1) + || TOOLBAR_BUTTONP (ret_obj1)); +#else + assert (NILP (ret_obj1) || GLYPHP (ret_obj1)); #endif - ); assert (NILP (ret_obj2) || EXTENTP (ret_obj2) || CONSP (ret_obj2)); if (char_x)