From: Aurelien Jacobs Date: Sat, 11 Jan 2014 16:48:53 +0000 (+0100) Subject: std: use #ifdef rather than #if where the constant may not be defined X-Git-Tag: libsigrok-0.3.0~316 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=45357ce64f07a3ac7d3faf99d9a0966694980e2e;p=libsigrok.git std: use #ifdef rather than #if where the constant may not be defined --- diff --git a/std.c b/std.c index 727ee6e9..93ca9425 100644 --- a/std.c +++ b/std.c @@ -264,11 +264,11 @@ SR_PRIV int std_dev_clear(const struct sr_dev_driver *driver, driver->dev_close(sdi); if (sdi->conn) { -#if HAVE_LIBSERIALPORT +#ifdef HAVE_LIBSERIALPORT if (sdi->inst_type == SR_INST_SERIAL) sr_serial_dev_inst_free(sdi->conn); #endif -#if HAVE_LIBUSB_1_0 +#ifdef HAVE_LIBUSB_1_0 if (sdi->inst_type == SR_INST_USB) sr_usb_dev_inst_free(sdi->conn); #endif