tinybfcp_config.h 2.1 KB

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