1
1

Commit a fix for hwloc -- still checking with upstream to see if this

will be the final solution.  But I'm committing it now so that
Oracle's Solaris Studio builds can resume.

The issue is that the C++ bindings are now (eventually) including
<hwloc.h>.  We use !__hwloc_inline__ and #define it to an appropriate
value at compile-time.  The issue is that when we're compiling C++
code, we should just set !__hwloc_inline__ to "inline", because that's
a keyword in the C++ language (as opposed to !__inline__, or
somesuch).

This commit was SVN r26418.
Этот коммит содержится в:
Jeff Squyres 2012-05-09 21:03:45 +00:00
родитель de4bbacd13
Коммит 9c9d7e77df

Просмотреть файл

@ -2,7 +2,7 @@
* Copyright © 2009 CNRS
* Copyright © 2009-2010 inria. All rights reserved.
* Copyright © 2009-2012 Université Bordeaux 1
* Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved.
* Copyright © 2009-2012 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
*/
@ -21,7 +21,11 @@
# endif
#endif
#if defined(_MSC_VER) || defined(__HP_cc)
/* Note that if we're compiling C++, then just use the "inline"
keyword, since it's part of C++ */
#if defined(c_plusplus) || defined(__cplusplus)
# define __hwloc_inline inline
#elif defined(_MSC_VER) || defined(__HP_cc)
# define __hwloc_inline __inline
#else
# define __hwloc_inline __inline__