YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
NativeAPI.cpp
浏览该文件的文档.
1 /*
2  © 2012-2014 FrankHB.
3 
4  This file is part of the YSLib project, and may only be used,
5  modified, and distributed under the terms of the YSLib project
6  license, LICENSE.TXT. By continuing to use, modify, or distribute
7  this file you indicate that you have read the license and
8  understand and accept it fully.
9 */
10 
28 #include "YCLib/YModules.h"
29 #include "CHRLib/YModules.h"
30 #include YFM_YCLib_NativeAPI
31 #include <ydef.h>
32 #include <ctime>
33 #include <cstdlib>
34 #include <cstdio>
35 #include <cstring>
36 #include YFM_CHRLib_CharacterProcessing
37 
38 using namespace CHRLib;
39 
40 namespace
41 {
42 
43 }
44 
45 #if YCL_DS
46 
47 
48 #elif YCL_MinGW32
49 
50 extern "C"
51 {
52 
53 # if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
54 // See FileSystem.cpp, line 40.
56 struct ::tm* __cdecl __MINGW_NOTHROW
57 _gmtime32(const ::__time32_t* p)
58 {
59  return std::gmtime(p);
60 }
61 # endif
62 
63 } // extern "C";
64 
65 #endif
66 
67 namespace platform
68 {
69 }
70 
系统环境和公用类型和宏的基础定义。