tinyrtp_config.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * Copyright (C) 2012 Doubango Telecom <http://www.doubango.org>
  3. *
  4. * Contact: Mamadou Diop <diopmamadou(at)doubango.org>
  5. *
  6. * This file is part of Open Source Doubango Framework.
  7. *
  8. * DOUBANGO is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * DOUBANGO is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with DOUBANGO.
  20. *
  21. */
  22. #ifndef TINYRTP_CONFIG_H
  23. #define TINYRTP_CONFIG_H
  24. #ifdef __SYMBIAN32__
  25. #undef _WIN32 /* Because of WINSCW */
  26. #endif
  27. // Windows (XP/Vista/7/CE and Windows Mobile) macro definition.
  28. #if defined(WIN32)|| defined(_WIN32) || defined(_WIN32_WCE)
  29. # define TRTP_UNDER_WINDOWS 1
  30. # if defined(_WIN32_WCE) || defined(UNDER_CE)
  31. # define TRTP_UNDER_WINDOWS_CE 1
  32. # endif
  33. # if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP)
  34. # define TRTP_UNDER_WINDOWS_RT 1
  35. # endif
  36. #endif
  37. #if (TRTP_UNDER_WINDOWS || defined(__SYMBIAN32__)) && defined(TINYRTP_EXPORTS)
  38. # define TINYRTP_API __declspec(dllexport)
  39. # define TINYRTP_GEXTERN __declspec(dllexport)
  40. #elif (TRTP_UNDER_WINDOWS || defined(__SYMBIAN32__)) && !defined(TINYRTP_IMPORTS_IGNORE)
  41. # define TINYRTP_API __declspec(dllimport)
  42. # define TINYRTP_GEXTERN __declspec(dllimport)
  43. #else
  44. # define TINYRTP_API
  45. # define TINYRTP_GEXTERN extern
  46. #endif
  47. /* Guards against C++ name mangling
  48. */
  49. #ifdef __cplusplus
  50. # define TRTP_BEGIN_DECLS extern "C" {
  51. # define TRTP_END_DECLS }
  52. #else
  53. # define TRTP_BEGIN_DECLS
  54. # define TRTP_END_DECLS
  55. #endif
  56. /* Disable some well-known warnings
  57. */
  58. #ifdef _MSC_VER
  59. # define _CRT_SECURE_NO_WARNINGS
  60. #endif
  61. /* Detecting C99 compilers
  62. */
  63. #if (__STDC_VERSION__ == 199901L) && !defined(__C99__)
  64. # define __C99__
  65. #endif
  66. #if !defined(TRTP_RTP_VERSION)
  67. # define TRTP_RTP_VERSION 2
  68. #endif /* TRTP_RTP_VERSION */
  69. #include <stdint.h>
  70. #ifdef __SYMBIAN32__
  71. # include <stdlib.h>
  72. #endif
  73. #if defined(__APPLE__)
  74. # include <TargetConditionals.h>
  75. # include <Availability.h>
  76. #endif
  77. #if HAVE_CONFIG_H
  78. #include <config.h>
  79. #endif
  80. #endif // TINYRTP_CONFIG_H