tinyxcap_config.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Copyright (C) 2010-2011 Mamadou Diop.
  3. *
  4. * Contact: Mamadou Diop <diopmamadou [at) doubango (DOT) 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 TINYXCAP_CONFIG_H
  23. #define TINYXCAP_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 TXCAP_UNDER_WINDOWS 1
  30. # if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP)
  31. # define TXCAP_UNDER_WINDOWS_RT 1
  32. # endif
  33. #endif
  34. #if (TXCAP_UNDER_WINDOWS || defined(__SYMBIAN32__)) && defined(TINYXCAP_EXPORTS)
  35. # define TINYXCAP_API __declspec(dllexport)
  36. # define TINYXCAP_GEXTERN extern __declspec(dllexport)
  37. #elif (TXCAP_UNDER_WINDOWS || defined(__SYMBIAN32__)) && !defined(TINYXCAP_IMPORTS_IGNORE)
  38. # define TINYXCAP_API __declspec(dllimport)
  39. # define TINYXCAP_GEXTERN __declspec(dllimport)
  40. #else
  41. # define TINYXCAP_API
  42. # define TINYXCAP_GEXTERN extern
  43. #endif
  44. /* Guards against C++ name mangling
  45. */
  46. #ifdef __cplusplus
  47. # define TXCAP_BEGIN_DECLS extern "C" {
  48. # define TXCAP_END_DECLS }
  49. #else
  50. # define TXCAP_BEGIN_DECLS
  51. # define TXCAP_END_DECLS
  52. #endif
  53. /* Disable some well-known warnings
  54. */
  55. #ifdef _MSC_VER
  56. # define _CRT_SECURE_NO_WARNINGS
  57. #endif
  58. /* Detecting C99 compilers
  59. */
  60. #if (__STDC_VERSION__ == 199901L) && !defined(__C99__)
  61. # define __C99__
  62. #endif
  63. #include <stdint.h>
  64. #ifdef __SYMBIAN32__
  65. #include <stdlib.h>
  66. #endif
  67. #if HAVE_CONFIG_H
  68. #include <config.h>
  69. #endif
  70. #endif // TINYXCAP_CONFIG_H