Linux: change to posix style#81
Linux: change to posix style#81DimStar77 wants to merge 1 commit intovmware:masterfrom DimStar77:posixly
Conversation
replace it by defined(__linux__)
|
Care to elaborate on this change? Under what circumstances is |
|
Sure.. nothing easier than that. Take this very dummy c++ 'code': then compile it twice, once using:
And once using
Building using c++11 standard does NOT provide the linux defines... |
|
Thanks @DimStar77. This was mainly for my own curiosity, but it may help get this PR merged, too. That is, if anyone from @vmware pays any attention to it. |
|
@DimStar77, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction. |
|
@DimStar77, VMware has approved your signed contributor license agreement. |
|
In the meantime compiling with -std=gnu++11 works well :) |
|
Confusing read! For anyone also puzzled by the thread above and maybe not looking at the patch, notice the text emphasized in bold and surround those with __. In the markdown formatting used here double underscore, as in the standard compiler defines, are translated into bold text unless marked otherwise. Original PR text 'code' quoted: And the gcc output (my execution): Still unmerged though. Things busy at VMware? |
|
Thanks. We have created an internal bug to track it. |
replace it by defined(linux)