From a8fd697d41a1e34b07b5132b6ccad8671777287c Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 8 Nov 2016 12:57:06 +0000 Subject: [PATCH] runtime: unbreak 453e8b7. Running rustc --cfg 'foo="1"' does not result in a statement of the form do_thing() to be compilex in. --- artiq/runtime.rs/libksupport/api.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/artiq/runtime.rs/libksupport/api.rs b/artiq/runtime.rs/libksupport/api.rs index 5f9d7f967..b9788be26 100644 --- a/artiq/runtime.rs/libksupport/api.rs +++ b/artiq/runtime.rs/libksupport/api.rs @@ -105,15 +105,15 @@ static mut API: &'static [(&'static str, *const ())] = &[ api!(rtio_input_timestamp), api!(rtio_input_data), - #[cfg(rtio_dds_count)] + #[cfg(has_rtio_dds_count)] api!(dds_init), - #[cfg(rtio_dds_count)] + #[cfg(has_rtio_dds_count)] api!(dds_init_sync), - #[cfg(rtio_dds_count)] + #[cfg(has_rtio_dds_count)] api!(dds_batch_enter), - #[cfg(rtio_dds_count)] + #[cfg(has_rtio_dds_count)] api!(dds_batch_exit), - #[cfg(rtio_dds_count)] + #[cfg(has_rtio_dds_count)] api!(dds_set), api!(i2c_init),