This avoids a hack for making it a no-op for windows.
Also explicitly check for _WIN32 instead of assuming it.
|  Differential  D39156  
[libunwind] Make HIDDEN_DIRECTIVE a function-like macro. NFCI. ClosedPublic Authored by mstorsjo on Oct 20 2017, 11:01 PM. 
Details Summary This avoids a hack for making it a no-op for windows. Also explicitly check for _WIN32 instead of assuming it. 
Diff Detail Event TimelineComment Actions Thanks for cleaning this up. IIRC, I have similar behavior in compiler-rt for HIDDEN_SYMBOL. This revision is now accepted and ready to land.Oct 21 2017, 7:19 PM Closed by commit rL316300: Make HIDDEN_DIRECTIVE a function-like macro. NFCI. (authored by mstorsjo).  ·  Explain WhyOct 22 2017, 12:40 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 119740 src/assembly.h
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||