1
0
Fork 0

clutter: Remove useless OS_LINUX macro

It was unconditionally set to 1.
This commit is contained in:
Jonas Ådahl 2018-05-23 11:24:09 +02:00
parent 0095c2e340
commit 1e2610e4f4
2 changed files with 4 additions and 7 deletions

View file

@ -29,9 +29,6 @@ AC_PROG_SED
dnl = Preliminary platform checks =============================================
AC_CANONICAL_HOST
AC_DEFINE([OS_LINUX], [1], [Define to 1 if building for Linux])
AC_CACHE_SAVE
dnl = Dependencies =========================================================

View file

@ -21,7 +21,7 @@
#include <clutter/clutter.h>
#if defined CLUTTER_WINDOWING_X11 && OS_LINUX && HAVE_XINPUT_2_2
#if defined CLUTTER_WINDOWING_X11 && HAVE_XINPUT_2_2
#include <stdio.h>
#include <string.h>
@ -355,12 +355,12 @@ error:
return 0;
}
#endif /* defined CLUTTER_WINDOWING_X11 && OS_LINUX && HAVE_XINPUT_2_2 */
#endif /* defined CLUTTER_WINDOWING_X11 && HAVE_XINPUT_2_2 */
static void
events_touch (void)
{
#if defined CLUTTER_WINDOWING_X11 && OS_LINUX && HAVE_XINPUT_2_2
#if defined CLUTTER_WINDOWING_X11 && HAVE_XINPUT_2_2
ClutterActor *stage;
State state;
@ -384,7 +384,7 @@ events_touch (void)
g_print ("end result: %s\n", state.pass ? "pass" : "FAIL");
g_assert (state.pass);
#endif /* defined CLUTTER_WINDOWING_X11 && OS_LINUX && HAVE_XINPUT_2_2 */
#endif /* defined CLUTTER_WINDOWING_X11 && HAVE_XINPUT_2_2 */
}
CLUTTER_TEST_SUITE (