From 6a590262ed3747ef7b8f577402aee1671e404cea Mon Sep 17 00:00:00 2001 From: zer0 Date: Sat, 9 Jan 2010 17:39:09 +0100 Subject: [PATCH] better compilation on host --- modules/devices/encoders/encoders_spi/encoders_spi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/devices/encoders/encoders_spi/encoders_spi.c b/modules/devices/encoders/encoders_spi/encoders_spi.c index a672803..ae0d0d1 100644 --- a/modules/devices/encoders/encoders_spi/encoders_spi.c +++ b/modules/devices/encoders/encoders_spi/encoders_spi.c @@ -24,6 +24,8 @@ * interface. Basically, frames are formatted with 4 words of 16 bits, * describing the values of the 4 encoders. */ +#ifndef HOST_VERSION + #include #include @@ -101,3 +103,5 @@ void encoders_spi_set_value(void *encoder, int32_t val) g_encoders_spi_values[(int)encoder] = val; IRQ_UNLOCK(flags); } + +#endif -- 2.39.5