root/oshmem/include/oshmem_config.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* -*- c -*-
   2  *
   3  * Copyright (c) 2013      Mellanox Technologies, Inc.
   4  *                         All rights reserved.
   5  * Copyright (c) 2013      Cisco Systems, Inc.  All rights reserved.
   6  * Copyright (c) 2016      Research Organization for Information Science
   7  *                         and Technology (RIST). All rights reserved.
   8  * $COPYRIGHT$
   9  *
  10  * Additional copyrights may follow
  11  *
  12  * $HEADER$
  13  *
  14  * Function: - OS, CPU and compiler dependent configuration
  15  */
  16 
  17 #ifndef OSHMEM_CONFIG_H
  18 #define OSHMEM_CONFIG_H
  19 
  20 /* Need to include a bunch of infrastructure from the OMPI layer */
  21 #include "ompi_config.h"
  22 
  23 #define OSHMEM_IDENT_STRING OPAL_IDENT_STRING
  24 
  25 #if defined(__WINDOWS__)
  26 
  27 #  if defined(_USRDLL)    /* building shared libraries (.DLL) */
  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  /* defined(OSHMEM_MODULE_EXPORTS) */
  38 #    endif  /* defined(OSHMEM_EXPORTS) */
  39 #  else          /* building static library */
  40 #    if defined(OSHMEM_IMPORTS)
  41 #      define OSHMEM_DECLSPEC        __declspec(dllimport)
  42 #    else
  43 #      define OSHMEM_DECLSPEC
  44 #    endif  /* defined(OSHMEM_IMPORTS) */
  45 #    define OSHMEM_MODULE_DECLSPEC
  46 #  endif  /* defined(_USRDLL) */
  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  /* defined(__WINDOWS__) */
  66 
  67 #endif

/* [<][>][^][v][top][bottom][index][help] */