File tree Expand file tree Collapse file tree 3 files changed +32
-39
lines changed Expand file tree Collapse file tree 3 files changed +32
-39
lines changed Original file line number Diff line number Diff line change 1616#else
1717# define XRCDB_API XR_IMPORT
1818#endif
19- #ifdef M_VISUAL
20- #define ALIGN (a ) __declspec(align(a))
21- #else
22- #define ALIGN (a )
23- #endif
2419
2520// forward declarations
2621class CFrustum ;
Original file line number Diff line number Diff line change 3333# define ICN __declspec (noinline)
3434#endif
3535
36+ #include <time.h>
37+ // work-around dumb borland compiler
3638#ifdef __BORLANDC__
39+ #define ALIGN (a )
40+
3741#include <vcl.h>
3842#include <mmsystem.h>
3943#include <stdint.h>
44+ #include <assert.h>
45+ #include <utime.h>
46+ #define _utimbuf utimbuf
47+
48+ // function redefinition
49+ #define fabsf (a ) fabs(a)
50+ #define sinf (a ) sin(a)
51+ #define asinf (a ) asin(a)
52+ #define cosf (a ) cos(a)
53+ #define acosf (a ) acos(a)
54+ #define tanf (a ) tan(a)
55+ #define atanf (a ) atan(a)
56+ #define sqrtf (a ) sqrt(a)
57+ #define expf (a ) ::exp(a)
58+ #define floorf floor
59+ #define atan2f atan2
60+ #define logf log
61+ // float redefine
62+ #define _PC_24 PC_24
63+ #define _PC_53 PC_53
64+ #define _PC_64 PC_64
65+ #define _RC_CHOP RC_CHOP
66+ #define _RC_NEAR RC_NEAR
67+ #define _MCW_EM MCW_EM
68+ #else
69+ #define ALIGN (a ) __declspec(align(a))
70+ #include <sys\utime.h>
4071#endif
4172
73+
4274#define NOGDICAPMASKS
4375//#define NOSYSMETRICS
4476#define NOMENUS
Original file line number Diff line number Diff line change 102102#endif
103103
104104#include < time.h>
105- // work-around dumb borland compiler
106- #ifdef __BORLANDC__
107- #define ALIGN (a )
108-
109- #include < assert.h>
110- #include < utime.h>
111- #define _utimbuf utimbuf
112- #define MODULE_NAME " xrCoreB.dll"
113-
114- // function redefinition
115- #define fabsf (a ) fabs(a)
116- #define sinf (a ) sin(a)
117- #define asinf (a ) asin(a)
118- #define cosf (a ) cos(a)
119- #define acosf (a ) acos(a)
120- #define tanf (a ) tan(a)
121- #define atanf (a ) atan(a)
122- #define sqrtf (a ) sqrt(a)
123- #define expf (a ) ::exp(a)
124- #define floorf floor
125- #define atan2f atan2
126- #define logf log
127- // float redefine
128- #define _PC_24 PC_24
129- #define _PC_53 PC_53
130- #define _PC_64 PC_64
131- #define _RC_CHOP RC_CHOP
132- #define _RC_NEAR RC_NEAR
133- #define _MCW_EM MCW_EM
134- #else
135- #define ALIGN (a ) __declspec(align(a))
136- #include < sys\utime.h>
137105#define MODULE_NAME " xrCore.dll"
138- #endif
139-
140106
141107// Warnings
142108#pragma warning (disable : 4251 ) // object needs DLL interface
You can’t perform that action at this time.
0 commit comments