eclipse / mraa

Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.

Home Page:http://mraa.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

g++: types.h compilation warning -Wundef

peterlauro1973 opened this issue · comments

when the api/mraa/types.h is included in include hierarchy of project which compiles with a warning flag -Wundef, the following warning is shown

/api/mraa/types.h:56:5:  warning: "__STDC_VERSION__" is not defined, evaluates to 0 [-Wundef]
   56 | #if __STDC_VERSION__ >= 199901L
instead of #if __STDC_VERSION__ >= 199901L
utilize: #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L