1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 #ifndef OSHMEM_CONFIG_H
  18 #define OSHMEM_CONFIG_H
  19 
  20 
  21 #include "ompi_config.h"
  22 
  23 #define OSHMEM_IDENT_STRING OPAL_IDENT_STRING
  24 
  25 #if defined(__WINDOWS__)
  26 
  27 #  if defined(_USRDLL)    
  28 #    if defined(OSHMEM_EXPORTS)
  29 #      define OSHMEM_DECLSPEC        __declspec(dllexport)
  30 #      define OSHMEM_MODULE_DECLSPEC
  31 #    else
  32 #      define OSHMEM_DECLSPEC        __declspec(dllimport)
  33 #      if defined(OSHMEM_MODULE_EXPORTS)
  34 #        define OSHMEM_MODULE_DECLSPEC __declspec(dllexport)
  35 #      else
  36 #        define OSHMEM_MODULE_DECLSPEC __declspec(dllimport)
  37 #      endif  
  38 #    endif  
  39 #  else          
  40 #    if defined(OSHMEM_IMPORTS)
  41 #      define OSHMEM_DECLSPEC        __declspec(dllimport)
  42 #    else
  43 #      define OSHMEM_DECLSPEC
  44 #    endif  
  45 #    define OSHMEM_MODULE_DECLSPEC
  46 #  endif  
  47 
  48 #else
  49 
  50 #  if OPAL_C_HAVE_VISIBILITY
  51 #    ifndef OSHMEM_DECLSPEC
  52 #      define OSHMEM_DECLSPEC            __opal_attribute_visibility__("default")
  53 #    endif
  54 #    ifndef OSHMEM_MODULE_DECLSPEC
  55 #      define OSHMEM_MODULE_DECLSPEC     __opal_attribute_visibility__("default")
  56 #    endif
  57 #  else
  58 #    ifndef OSHMEM_DECLSPEC
  59 #      define OSHMEM_DECLSPEC
  60 #    endif
  61 #    ifndef OSHMEM_MODULE_DECLSPEC
  62 #      define OSHMEM_MODULE_DECLSPEC
  63 #    endif
  64 #  endif
  65 #endif  
  66 
  67 #endif