-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConfig.h
74 lines (54 loc) · 1.51 KB
/
Config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* ----------------------------------------------------------------------------
* Copyright....: (c) SAP 1999-2021
* Project......:
* Library......:
* File.........: Config.h
* Author.......:
* Created......: Mon Apr 10 15:59:13 2006
* Description..:
* ----------------------------------------------------------------------------
*/
#ifndef _CONFIG_H
#define _CONFIG_H 1
#if defined(_WIN32)
// Added some pragma to remove strange warning that appear
// when switched on /W4
// warning C4786: identifier was truncated to '255' characters in
// the debug information
#pragma warning(disable : 4786)
#endif
#define KxSTL std
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <string>
#include <vector>
#include <map>
#include <sstream>
#define cString KxSTL::string
#define cIntVector KxSTL::vector<int>
#define cFloatVector KxSTL::vector<float>
#define cDoubleVector KxSTL::vector<double>
#define cStringVector KxSTL::vector<cString>
class iKxModel; // forward declaration, defined in iKxModel.h
// Mainly usefull for WIN32
//
// To compile the DLL version of KxCPP, define KX_EXPORT_CPP
// To use the DLL version of KxCPP, define KX_IMPORT_CPP
// To compile or use the static version, no define required.
//
#ifndef FLT_MAX
#define FLT_MAX 3.402823466e+38F
#endif
#if defined(KX_EXPORT_CPP)
#define KX_CPP_API __declspec(dllexport)
#else
#if defined(KX_IMPORT_CPP)
#define KX_CPP_API _declspec(dllimport)
#else
#define KX_CPP_API
#endif
#endif
#endif // _CONFIG_H