5d02c9 multilib-fix: document why not to use __WORDSIZE

Authored and Committed by praiskup 3 years ago
1 file changed. 4 lines added. 0 lines removed.
    multilib-fix: document why not to use __WORDSIZE
    Fedora's PackagingDrafts/MultilibTricks suggests the following
    c-header wrapper example:
      #include <bits wordsize.h="">
      #if __WORDSIZE == 32
      #include "config-32.h"
      #elif __WORDSIZE == 64
      #include "config-64.h"
      #error "Unknown word size"
    Installing and using this wrapper is not really no-op, however; it
    has been proven to cause include-ordering issues.  So, even though
    the shorter stub works in most cases, document why we still prefer
    the longer #ifdef wrapper.  Thanks to Vít Ondruch for pointing
    this out.
    Related: rhbz#1412274
file modified
+4 -0