<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Use BYTE_ORDER to determine byte order"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94570#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Use BYTE_ORDER to determine byte order"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94570">bug 94570</a>
              from <span class="vcard"><a class="email" href="mailto:fziglio@redhat.com" title="Frediano Ziglio <fziglio@redhat.com>"> <span class="fn">Frediano Ziglio</span></a>
</span></b>
        <pre><span class="quote">> 
> Taking your latter comment into account, how about something along these
> lines?

> +#if defined(BYTE_ORDER)
> +#  if BYTE_ORDER == LITTLE_ENDIAN
> +#    define SPICE_ENDIAN SPICE_ENDIAN_LITTLE
> +#  elif BYTE_ORDER == BIG_ENDIAN
> +#    define SPICE_ENDIAN SPICE_ENDIAN_BIG
> +#  endif
> +#endif

> This would guard the code in the sense that it won't be evaluated if
> endian.h isn't already included through another header.</span >

Does this work on *BSD ?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>