ChipMaster's trial hacks on C++CMS starting with v1.2.1. Not sure I'll follow on with the v2 since it looks to be breaking and mostly frivolous.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
1.6 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
  4. //
  5. // See accompanying file COPYING.TXT file for licensing details.
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////
  8. #ifndef CPPCMS_DEFS_H
  9. #define CPPCMS_DEFS_H
  10. #if defined(__WIN32) || defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__)
  11. # if defined(DLL_EXPORT)
  12. # if defined(CPPCMS_SOURCE) || defined(CPPCMS_LOCALE_SOURCE)
  13. # define CPPCMS_API __declspec(dllexport)
  14. # else
  15. # define CPPCMS_API __declspec(dllimport)
  16. # endif
  17. # else
  18. # define CPPCMS_API
  19. # endif
  20. #else // ELF BINARIES
  21. # define CPPCMS_API
  22. #endif
  23. #if (defined(WIN32) || defined(_WIN32) || defined(__WIN32)) && !defined(__CYGWIN__)
  24. #define CPPCMS_WIN_NATIVE
  25. #endif
  26. #if defined(__CYGWIN__)
  27. #define CPPCMS_CYGWIN
  28. #endif
  29. #if defined(CPPCMS_WIN_NATIVE) || defined(CPPCMS_CYGWIN)
  30. #define CPPCMS_WIN32
  31. #endif
  32. #if !defined(CPPCMS_WIN_NATIVE)
  33. #define CPPCMS_POSIX
  34. #endif
  35. #if defined __GNUC__ || defined __clang__
  36. #define CPPCMS_DEPRECATED __attribute__((deprecated))
  37. #elif defined _MSC_VER
  38. #define CPPCMS_DEPRECATED __declspec(deprecated)
  39. #else
  40. #define CPPCMS_DEPRECATED
  41. #endif
  42. #if defined __GNUC__ || defined __clang__
  43. #define CPPCMS_UNUSED __attribute__((unused))
  44. #else
  45. #define CPPCMS_UNUSED
  46. #endif
  47. #if defined __clang__
  48. #define CPPCMS_UNUSED_MEMBER __attribute__((unused))
  49. #else
  50. #define CPPCMS_UNUSED_MEMBER
  51. #endif
  52. #endif /// CPPCMS_DEFS_H