# @linux\_only macros?

**URL:** <https://discourse.julialang.org/t/linux-only-macros/2815>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 22, 2017, 10:21am UTC](https://discourse.julialang.org/t/linux-only-macros/2815 "2017-03-22T10:21:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Post date:** [March 22, 2017, 10:21am UTC](https://discourse.julialang.org/t/linux-only-macros/2815/1 "2017-03-22T10:21:54Z")

</div>

I’m using (unintentionally, as i copied from someplace) an @linux\_only macro.  
I was thinking this is from BinDeps, but this seems not to be the case.  
Where is it from, and what is the 0.6 safe and backward compatible variant?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [March 22, 2017, 11:26am UTC](https://discourse.julialang.org/t/linux-only-macros/2815/2 "2017-03-22T11:26:31Z")

</div>

`@linux_only` was deprecated in 0.5. Use `@static if is_linux()` instead. (You can omit the `@static` if it is not important whether the `if` is evaluated at compile-time or runtime.)

---

<div class="post-metadata">

**Author:** ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Post date:** [March 27, 2017, 8:50am UTC](https://discourse.julialang.org/t/linux-only-macros/2815/3 "2017-03-27T08:50:08Z")

</div>

@static seems to be not available in 0.4. Is there a recommended construction that works (with Compat?) in all versions?

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [March 27, 2017, 11:13am UTC](https://discourse.julialang.org/t/linux-only-macros/2815/4 "2017-03-27T11:13:38Z")

</div>

`@static`
