Skip to content

Commit

Permalink
Platform.h: Remove Borland-specific stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 17, 2016
1 parent b57adb8 commit 8e21f59
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/xrCore/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,42 +34,8 @@
#endif

#include <ctime>
// work-around dumb borland compiler
#ifdef __BORLANDC__
#define ALIGN(a)

#include <vcl.h>
#include <mmsystem.h>
#include <stdint.h>
#include <assert.h>
#include <utime.h>
#define _utimbuf utimbuf

// function redefinition
#define fabsf(a) fabs(a)
#define sinf(a) sin(a)
#define asinf(a) asin(a)
#define cosf(a) cos(a)
#define acosf(a) acos(a)
#define tanf(a) tan(a)
#define atanf(a) atan(a)
#define sqrtf(a) sqrt(a)
#define expf(a) ::exp(a)
#define floorf floor
#define atan2f atan2
#define logf log
// float redefine
#define _PC_24 PC_24
#define _PC_53 PC_53
#define _PC_64 PC_64
#define _RC_CHOP RC_CHOP
#define _RC_NEAR RC_NEAR
#define _MCW_EM MCW_EM
#else
#define ALIGN(a) __declspec(align(a))
#include <sys\utime.h>
#endif


#define NOGDICAPMASKS
//#define NOSYSMETRICS
Expand Down

0 comments on commit 8e21f59

Please sign in to comment.