Exports 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /* -*-c++-*- OpenThreads library, Copyright (C) 2002 - 2007 The Open Thread Group
  2. *
  3. * This library is open source and may be redistributed and/or modified under
  4. * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
  5. * (at your option) any later version. The full license is in LICENSE file
  6. * included with this distribution, and on the openscenegraph.org website.
  7. *
  8. * This library is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * OpenSceneGraph Public License for more details.
  12. */
  13. #ifndef _OPENTHREAD_EXPORTS_H_
  14. #define _OPENTHREAD_EXPORTS_H_
  15. #include <OpenThreads/Config>
  16. #ifndef WIN32
  17. #define OPENTHREAD_EXPORT_DIRECTIVE
  18. #else
  19. #if defined( OT_LIBRARY_STATIC )
  20. #define OPENTHREAD_EXPORT_DIRECTIVE
  21. #elif defined( OPENTHREADS_EXPORTS )
  22. #define OPENTHREAD_EXPORT_DIRECTIVE __declspec(dllexport)
  23. #else
  24. #define OPENTHREAD_EXPORT_DIRECTIVE __declspec(dllimport)
  25. #endif
  26. #endif
  27. #endif