/src/ftk_platform.h
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/* 26 * History: 27 * ================================================================ 28 * 2009-10-03 Li XianJing <xianjimli@hotmail.com> created 29 * 2010-10-02 Jiao JinXing <jiaojinxing1987@gmail.com> add rt-thread support. 30 * 31 */ 32#ifndef FTK_PLATFORM_H 33#define FTK_PLATFORM_H 34 35#ifndef RT_THREAD 36#include <stdio.h> 37#endif 38#include <assert.h> 39#include <stdlib.h> 40#include <stdarg.h> 41#include <string.h> 42 43#ifdef LINUX 44#include "ftk_linux.h" 45#endif 46 47#ifdef WIN32 48#ifdef UCOS_SIM 49#include "ftk_ucos_sim.h" 50#elif defined(WINCE) 51#include "ftk_wince.h" 52#else 53#include "ftk_win32.h" 54#endif 55#endif 56 57#ifdef ARM_ADS 58#include "ftk_ads.h" 59#endif 60 61#ifdef PSP 62#include "ftk_psp.h" 63#endif 64 65#ifdef IPHONE 66#include "ftk_iphone.h" 67#endif 68 69#ifdef RT_THREAD 70#include "ftk_rtthread.h" 71#endif 72 73#if defined(ANDROID) && defined(ANDROID_NDK) 74#include "ftk_android.h" 75#endif 76 77#ifdef SYLIXOS_LIB 78#include "ftk_sylixos.h" 79#endif 80 81int ftk_platform_init(int argc, char** argv); 82void ftk_platform_deinit(void); 83size_t ftk_get_relative_time(void); 84 85#endif/*FTK_PLATFORM_H*/ 86