[ruby-cvs:78957] 0958e19ffb (master): add several __has_something macro

Unknown <[email protected]> Thu, 26 Dec 2019 20:45:36 +0900 (JST)
Newsgroups gmane.comp.lang.ruby.cvs
Message-ID <[email protected]>
卜部昌平	2019-12-02 14:58:43 +0900 (Mon, 02 Dec 2019)

  New Revision: 0958e19ffb

  https://github.com/ruby/ruby/commit/0958e19ffb

  Log:
    add several __has_something macro
    
    With these macros implemented we can write codes just like we can assume
    the compiler being clang.  MSC_VERSION_SINCE is defined to implement
    those macros, but turned out to be handy for other places.  The -fdeclspec
    compiler flag is necessary for clang to properly handle __has_declspec().

  Modified files:
    bignum.c
    configure.ac
    internal/compilers.h
    internal/gc.h
    numeric.c
    random.c
    ruby_atomic.h
    vm_insnhelper.c