clarify iio.h macros that break with MATLAB on Linux
So there's less chance of them getting inadvertantly synced over again.master
parent
16c17d913f
commit
a3311ecf39
10
iio.h
10
iio.h
|
@ -37,9 +37,16 @@ extern "C" {
|
||||||
typedef long ssize_t;
|
typedef long ssize_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Breaks with MATLAB on Linux
|
||||||
|
* #ifdef __GNUC__
|
||||||
|
* #define __cnst __attribute__((const))
|
||||||
|
* #define __pure __attribute__((pure))
|
||||||
|
* #define __notused __attribute__((unused))
|
||||||
|
* #else */
|
||||||
#define __cnst
|
#define __cnst
|
||||||
#define __pure
|
#define __pure
|
||||||
#define __notused
|
#define __notused
|
||||||
|
/* #endif */
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# ifdef LIBIIO_EXPORTS
|
# ifdef LIBIIO_EXPORTS
|
||||||
|
@ -47,6 +54,9 @@ typedef long ssize_t;
|
||||||
# else
|
# else
|
||||||
# define __api __declspec(dllimport)
|
# define __api __declspec(dllimport)
|
||||||
# endif
|
# endif
|
||||||
|
/* Breaks with MATLAB on Linux
|
||||||
|
* #elif __GNUC__ >= 4
|
||||||
|
* # define __api __attribute__((visibility ("default"))) */
|
||||||
#else
|
#else
|
||||||
# define __api
|
# define __api
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue