tinyrohc_config.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (C) 2009 Mamadou Diop.
  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 TINYROHC_CONFIG_H
  23. #define TINYROHC_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. */
  29. #if defined(WIN32)|| defined(_WIN32) || defined(_WIN32_WCE)
  30. # define TROHC_UNDER_WINDOWS 1
  31. #endif
  32. #if !defined(__GNUC__) && defined(TINYROHC_EXPORTS)
  33. # define TINYROHC_API __declspec(dllexport)
  34. # define TINYROHC_GEXTERN __declspec(dllexport)
  35. #elif !defined(__GNUC__) /*&& defined(TINYROHC_IMPORTS)*/
  36. # define TINYROHC_API __declspec(dllimport)
  37. # define TINYROHC_GEXTERN __declspec(dllimport)
  38. #else
  39. # define TINYROHC_API
  40. # define TINYROHC_GEXTERN extern
  41. #endif
  42. /* Guards against C++ name mangling
  43. */
  44. #ifdef __cplusplus
  45. # define TROHC_BEGIN_DECLS extern "C" {
  46. # define TROHC_END_DECLS }
  47. #else
  48. # define TROHC_BEGIN_DECLS
  49. # define TROHC_END_DECLS
  50. #endif
  51. /* Disable some well-known warnings
  52. */
  53. #ifdef _MSC_VER
  54. # define _CRT_SECURE_NO_WARNINGS
  55. #endif
  56. /* Detecting C99 compilers
  57. */
  58. #if (__STDC_VERSION__ == 199901L) && !defined(__C99__)
  59. # define __C99__
  60. #endif
  61. #include <stdint.h>
  62. #ifdef __SYMBIAN32__
  63. #include <stdlib.h>
  64. #endif
  65. #if HAVE_CONFIG_H
  66. #include "../config.h"
  67. #endif
  68. #endif // TINYROHC_CONFIG_H