1
1

- Adding #include <stdbool.h> with protection in r17488 and r17504

seemed to be the right thing(tm), but broke the Sun Studio C++
   compiler under Linux (ticket 747).

   This patch should allow inclusion into C and C++ from other header
   files without problems.

This commit was SVN r17792.

The following SVN revision numbers were found above:
  r17488 --> open-mpi/ompi@d53131f261
  r17504 --> open-mpi/ompi@b22e8e7567
Этот коммит содержится в:
Rainer Keller 2008-03-08 12:53:10 +00:00
родитель cce542dd73
Коммит 32dcd9e551
2 изменённых файлов: 11 добавлений и 2 удалений

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

@ -26,7 +26,11 @@
#include "opal_config.h"
#ifdef HAVE_STDBOOL_H
/*
* Circumentvent problems in C++ compilers.
* For C++, we should not need the file, anyhow.
*/
#if defined(HAVE_STDBOOL_H) && !(defined(c_plusplus) || defined(__cplusplus))
#include <stdbool.h>
#endif

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

@ -67,7 +67,12 @@
#ifdef HAVE_STDARG_H
#include <stdarg.h>
#endif
#ifdef HAVE_STDBOOL_H
/*
* For C++, we should not need the file, anyhow.
* Circumentvent problems in C++ compilers.
*/
#if defined(HAVE_STDBOOL_H) && !(defined(c_plusplus) || defined(__cplusplus))
#include <stdbool.h>
#endif