<div dir="ltr">Hi Alistair,<div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 5, 2018 at 6:33 PM, Alistair Grant <span dir="ltr"><<a href="mailto:akgrant0710@gmail.com" target="_blank">akgrant0710@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
Hi Everyone,<br>
<br>
Would someone mind clarifying how I should be using the windows<br>
platform macros.  My understanding is:<br>
<br>
- WIN32 is defined by the VM build scripts on Windows 32 bit only<br>
- WIN64 is defined by the VM build scripts on Windows 64 bit only<br>
- _WIN32 is defined by the compiler on Windows 32 and 64 bit.<br>
- _WIN64 is defined by the compiler on Windows 64 bit only.<br>
<br>
If my understanding is incorrect, please correct me.<br>
<br>
If I want code that only runs on Windows (32 or 64 bit), I should<br>
check if _WIN32 is defined.<br>
<br>
The FileAttributesPlugin has a method with "<option: #WIN32>", which<br>
causes it to only be compiled on Windows 32 bit, while I also need it on<br>
Windows 64 bit.<br>
<br>
"<option: #_WIN32>" isn't recognised, so the code is never generated,<br>
and I couldn't figure out how to have #WIN32 OR #WIN64.<br></blockquote><div><br></div><div>Sorry not to have got to this sooner, but the support is in there now.  So by all means use <option: #_WIN32> now.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
What's the correct solution?<br>
<br>
<br>
Thanks!<br>
<span class="gmail-HOEnZb"><font color="#888888">Alistair<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>