snap_threads.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*=============================================================================|
  2. | PROJECT SNAP7 1.3.0 |
  3. |==============================================================================|
  4. | Copyright (C) 2013, 2015 Davide Nardella |
  5. | All rights reserved. |
  6. |==============================================================================|
  7. | SNAP7 is free software: you can redistribute it and/or modify |
  8. | it under the terms of the Lesser GNU General Public License as published by |
  9. | the Free Software Foundation, either version 3 of the License, or |
  10. | (at your option) any later version. |
  11. | |
  12. | It means that you can distribute your commercial software linked with |
  13. | SNAP7 without the requirement to distribute the source code of your |
  14. | application and without the requirement that your application be itself |
  15. | distributed under LGPL. |
  16. | |
  17. | SNAP7 is distributed in the hope that it will be useful, |
  18. | but WITHOUT ANY WARRANTY; without even the implied warranty of |
  19. | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
  20. | Lesser GNU General Public License for more details. |
  21. | |
  22. | You should have received a copy of the GNU General Public License and a |
  23. | copy of Lesser GNU General Public License along with Snap7. |
  24. | If not, see http://www.gnu.org/licenses/ |
  25. |=============================================================================*/
  26. #ifndef snap_threads_h
  27. #define snap_threads_h
  28. //---------------------------------------------------------------------------
  29. #include "snap_platform.h"
  30. #ifdef OS_WINDOWS
  31. # include "win_threads.h"
  32. #endif
  33. #if defined(POSIX) && (!defined(OS_SOLARIS_NATIVE_THREADS))
  34. # include "unix_threads.h"
  35. #endif
  36. #ifdef OS_SOLARIS_NATIVE_THREADS
  37. # include "sol_threads.h"
  38. #endif
  39. #if defined(OS_OSX)
  40. # include "unix_threads.h"
  41. #endif
  42. //---------------------------------------------------------------------------
  43. #endif // snap_threads_h