ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
410 stars 84 forks source link

Linux & gcc bug #42

Closed iryont closed 4 years ago

iryont commented 4 years ago

In system.hpp during compilation we get this error:

/usr/local/include/infoware/system.hpp:32:4: error: expected identifier before numeric constant
   32 |    linux,
      |    ^~~~~
/usr/local/include/infoware/system.hpp:32:4: error: expected '}' before numeric constant

It probably happens because on Linux gcc defines "linux" pre-processor definition, so the easiest way for me to "fix" it was to #undef linux before.

nabijaczleweli commented 4 years ago

Can you try with 627a7355a1e63a519580b3c1604ce3e8e2517783?

iryont commented 4 years ago

Indeed, that will do the trick. I did the same to compile infoware :)

nabijaczleweli commented 4 years ago

Released in v0.5.2; thanks!