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.
http://mraa.io
MIT License
1.36k stars 613 forks source link

g++: types.h compilation warning -Wundef #1109

Open peterlauro1973 opened 1 year ago

peterlauro1973 commented 1 year ago

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