Thomas Veerman 10b559663e buildsystem: fix build errors for x86 on OSX
Define _NLS_PRIVATE in tools/llvm-tblgen/Makefile so that
<tools/compat/nl_types.h> will pull in <include/nl_types.h>. This is
necessary as Clang's c++/v1/locale implementation contains references
to catopen and other catalog symbols that aren't defined anywhere.
Moreover, the compiler will complain about NL_CAT_LOCALE not being
declared. The compat nl_types.h fixes these discrepancies.

However, <nl_types.h> uses __format_arg to add function attributes to
declarations. On NetBSD __format_arg(fmtarg) is defined by
<sys/cdefs.h> to be __attribute__((__format_arg__ (fmtarg))) for
briefness, but other platforms don't do that. Consequently, the build
will fail on catopen and friends function declarations because the
compiler doesn't know how to handle __format_arg(fmtarg). A fixup to
<tools/compat/nl_types.h> takes care of this, but it won't win any
beauty contest.

Change-Id: Ic4426eca8385aeef858e60304d6e8c06cd497d95
Signed-off-by: Thomas Veerman <tveerman@gmail.com>
2014-11-04 11:00:29 +01:00
..
2012-06-18 10:54:51 +00:00
2014-07-28 17:05:59 +02:00
2012-06-18 10:54:51 +00:00
2012-12-07 13:58:07 +01:00
2014-07-28 17:05:57 +02:00
2014-07-28 17:05:59 +02:00
2012-06-18 10:54:51 +00:00
2012-06-18 10:54:51 +00:00
2012-06-18 10:54:51 +00:00
2014-07-31 16:00:30 +02:00
2012-06-18 10:54:51 +00:00
2012-11-07 23:15:52 +01:00
2012-06-18 10:54:51 +00:00
2012-12-07 13:58:07 +01:00
2014-07-31 16:00:30 +02:00
2012-10-24 13:42:44 +02:00
2012-06-18 10:54:51 +00:00
2012-06-18 10:54:51 +00:00
2014-07-28 17:05:16 +02:00
2014-07-31 16:00:30 +02:00
2012-12-07 13:58:07 +01:00
2014-07-31 16:00:30 +02:00
2012-06-18 10:54:51 +00:00
2012-06-18 10:54:51 +00:00
2014-07-28 17:05:16 +02:00
2014-07-28 17:05:20 +02:00