For FreeBSD, don't define _M in nasty_macros.hpp
authorDimitry Andric <dimitry@andric.com>
Wed, 15 Aug 2018 17:30:32 +0000 (17:30 +0000)
committerDimitry Andric <dimitry@andric.com>
Wed, 15 Aug 2018 17:30:32 +0000 (17:30 +0000)
commitc7510aa2acc16e8fd417528d8b4e554c7fb543f4
tree69fd722e9ba56b3454b05b1011b1fd0e1dc549a3
parent49a8280f43f06dee8d2ef5f74c72fe628c186810
For FreeBSD, don't define _M in nasty_macros.hpp

Because FreeBSD uses _M in its <sys/types.h>, and it is hard to avoid
including that header, only define _M to NASTY_MACRO for other operating
systems.  This fixes almost 2000 unexpected test failures.

Discussed with Eric Fiselier.

llvm-svn: 339794
libcxx/test/support/nasty_macros.hpp