1
1

Check for __func__, per suggestion from Ranier (oops; thought I had

already committed this :D )

This commit was SVN r3442.
Этот коммит содержится в:
Jeff Squyres 2004-10-29 19:14:11 +00:00
родитель 1952fca73d
Коммит 1a0a3428ea
2 изменённых файлов: 18 добавлений и 0 удалений

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

@ -554,6 +554,8 @@ AC_CHECK_DECL(__va_copy, OMPI_HAVE_UNDERSCORE_VA_COPY=1,
AC_DEFINE_UNQUOTED(OMPI_HAVE_UNDERSCORE_VA_COPY, $OMPI_HAVE_UNDERSCORE_VA_COPY,
[Whether we have __va_copy or not])
AC_CHECK_DECLS(__func__)
##################################
# System-specific tests

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

@ -197,6 +197,22 @@ extern "C" {
}
#endif
/*
* Define __func__-preprocessor directive if the compiler does not
* already define it. Define it to __FILE__ so that we at least have
* a clue where the developer is trying to indicate where the error is
* coming from (assuming that __func__ is typically used for
* printf-style debugging).
*/
#if !HAVE_DECL___FUNC__
#define __func__ __FILE__
#endif
/*
* One windows machines, ompi_errno will already be defined
*/
#ifndef ompi_errno
#define ompi_errno errno
#endif