/src/ftk_platform.h

http://ftk.googlecode.com/ · C Header · 86 lines · 43 code · 13 blank · 30 comment · 1 complexity · 3b97aab712c54435eb5ee26d0f4707a2 MD5 · raw file

  1. /*
  2. * File: ftk_platform.h
  3. * Author: Li XianJing <xianjimli@hotmail.com>
  4. * Brief:
  5. *
  6. * Copyright (c) 2009 - 2010 Li XianJing <xianjimli@hotmail.com>
  7. *
  8. * Licensed under the Academic Free License version 2.1
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License as published by
  12. * the Free Software Foundation; either version 2 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  23. */
  24. /*
  25. * History:
  26. * ================================================================
  27. * 2009-10-03 Li XianJing <xianjimli@hotmail.com> created
  28. * 2010-10-02 Jiao JinXing <jiaojinxing1987@gmail.com> add rt-thread support.
  29. *
  30. */
  31. #ifndef FTK_PLATFORM_H
  32. #define FTK_PLATFORM_H
  33. #ifndef RT_THREAD
  34. #include <stdio.h>
  35. #endif
  36. #include <assert.h>
  37. #include <stdlib.h>
  38. #include <stdarg.h>
  39. #include <string.h>
  40. #ifdef LINUX
  41. #include "ftk_linux.h"
  42. #endif
  43. #ifdef WIN32
  44. #ifdef UCOS_SIM
  45. #include "ftk_ucos_sim.h"
  46. #elif defined(WINCE)
  47. #include "ftk_wince.h"
  48. #else
  49. #include "ftk_win32.h"
  50. #endif
  51. #endif
  52. #ifdef ARM_ADS
  53. #include "ftk_ads.h"
  54. #endif
  55. #ifdef PSP
  56. #include "ftk_psp.h"
  57. #endif
  58. #ifdef IPHONE
  59. #include "ftk_iphone.h"
  60. #endif
  61. #ifdef RT_THREAD
  62. #include "ftk_rtthread.h"
  63. #endif
  64. #if defined(ANDROID) && defined(ANDROID_NDK)
  65. #include "ftk_android.h"
  66. #endif
  67. #ifdef SYLIXOS_LIB
  68. #include "ftk_sylixos.h"
  69. #endif
  70. int ftk_platform_init(int argc, char** argv);
  71. void ftk_platform_deinit(void);
  72. size_t ftk_get_relative_time(void);
  73. #endif/*FTK_PLATFORM_H*/