From a3311ecf39151244ad78ee69a4be3c4b3e1a86df Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Wed, 27 May 2015 17:09:53 -0400 Subject: [PATCH] clarify iio.h macros that break with MATLAB on Linux So there's less chance of them getting inadvertantly synced over again. --- iio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/iio.h b/iio.h index 285e1d4..700b6eb 100644 --- a/iio.h +++ b/iio.h @@ -37,9 +37,16 @@ extern "C" { typedef long ssize_t; #endif +/* Breaks with MATLAB on Linux + * #ifdef __GNUC__ + * #define __cnst __attribute__((const)) + * #define __pure __attribute__((pure)) + * #define __notused __attribute__((unused)) + * #else */ #define __cnst #define __pure #define __notused +/* #endif */ #ifdef _WIN32 # ifdef LIBIIO_EXPORTS @@ -47,6 +54,9 @@ typedef long ssize_t; # else # define __api __declspec(dllimport) # endif +/* Breaks with MATLAB on Linux + * #elif __GNUC__ >= 4 + * # define __api __attribute__((visibility ("default"))) */ #else # define __api #endif