Re: [PATCH] i2c-tools: NULL in i2c-dev.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On Sun, Jun 2, 2013 at 8:01 PM, Martin Vogt <mvogt1@xxxxxxxxx> wrote:
> I was trying to write a CMake check for i2c-dev.h.
> This did not work, because "NULL" is used in i2c-dev.h, but NULL is not
> defined, during the check.

CMake can include more headers in the check:

>CHECK_STRUCT_MEMBER(i2c_msg buf  "string.h;${INC_I2C_DEV_H}/i2c-dev.h"    HAS_I2C_MSG)

With this string.h defines NULL, problem solved.

regards,

Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux