Skip to content

Commit c28ba95

Browse files
authored
Merge pull request #6132 from bertwesarg/pshmem-includes-shmem
OSHMEM: Let `pshmem.h` include `shmem.h` to be stand-alone again
2 parents cdb952f + f46130c commit c28ba95

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

oshmem/include/pshmem.h

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,7 @@
1414
#ifndef PSHMEM_SHMEM_H
1515
#define PSHMEM_SHMEM_H
1616

17-
18-
#include <stddef.h> /* include for ptrdiff_t */
19-
#include <stdint.h> /* include for fixed width types */
20-
#if defined(c_plusplus) || defined(__cplusplus)
21-
# include <complex>
22-
# define OSHMEM_COMPLEX_TYPE(type) std::complex<type>
23-
#else
24-
# include <complex.h>
25-
# define OSHMEM_COMPLEX_TYPE(type) type complex
26-
#endif
27-
28-
29-
#ifndef OSHMEM_DECLSPEC
30-
# if defined(OPAL_C_HAVE_VISIBILITY) && (OPAL_C_HAVE_VISIBILITY == 1)
31-
# define OSHMEM_DECLSPEC __attribute__((visibility("default")))
32-
# else
33-
# define OSHMEM_DECLSPEC
34-
# endif
35-
#endif
36-
37-
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
38-
#define OSHMEMP_HAVE_C11 1
39-
#else
40-
#define OSHMEMP_HAVE_C11 0
41-
#endif
42-
17+
#include <shmem.h>
4318
#include <pshmemx.h>
4419

4520
#if defined(c_plusplus) || defined(__cplusplus)

0 commit comments

Comments
 (0)