
.. _program_listing_file_library_include_rocrand_rocrandapi.h:

Program Listing for File rocrandapi.h
=====================================

|exhale_lsh| :ref:`Return to documentation for file <file_library_include_rocrand_rocrandapi.h>` (``library/include/rocrand/rocrandapi.h``)

.. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS

.. code-block:: cpp

   #ifndef ROCRAND_ROCRANDAPI_H_
   #define ROCRAND_ROCRANDAPI_H_
   
   #ifndef ROCRANDAPI
       #ifdef WIN32
           #ifdef rocrand_EXPORTS
               /* We are building this library */
               #define ROCRANDAPI __declspec(dllexport)
           #else
               /* We are using this library */
               #define ROCRANDAPI __declspec(dllimport)
           #endif
       #else
           #define ROCRANDAPI __attribute__((visibility("default")))
       #endif
   #endif
   
   #endif // ROCRAND_ROCRANDAPI_H_
