6afa4c6c64
different macros, one for each project. Therefore, now we have OPAL_DECLSPEC, ORTE_DECLSPEC and OMPI_DECLSPEC. Please use them based on the sub-project. This commit was SVN r11270.
48 строки
1.3 KiB
C
48 строки
1.3 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
* of Tennessee Research Foundation. All rights
|
|
* reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#ifndef OMPI_UTSNAME_H
|
|
#define OMPI_UTSNAME_H
|
|
|
|
#ifdef WIN32
|
|
# define WIN32_LEAN_AND_MEAN
|
|
# include <windows.h>
|
|
# undef WIN32_LEAN_AND_MEAN
|
|
#endif
|
|
|
|
#define OMPI_UTSNAME_LEN 20
|
|
/* cygwin defines this to be 20 as well ... verify */
|
|
|
|
struct utsname {
|
|
char sysname[OMPI_UTSNAME_LEN];
|
|
char nodename[OMPI_UTSNAME_LEN];
|
|
char release[OMPI_UTSNAME_LEN];
|
|
char version[OMPI_UTSNAME_LEN];
|
|
char machine[OMPI_UTSNAME_LEN];
|
|
};
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
OPAL_DECLSPEC int uname(struct utsname *un);
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif /* oMPI_UTSNAME_H */
|