Skip to content

Commit 9b21b37

Browse files
committed
port Externals/OPCODE to linux by eagleivg
1 parent 08b0286 commit 9b21b37

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

Externals/OPCODE/OPC_Preprocessor.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,6 @@
1212
#ifndef __ICEPREPROCESSOR_H__
1313
#define __ICEPREPROCESSOR_H__
1414

15-
// Check platform
16-
#if defined(_WIN32) || defined(WIN32)
17-
#pragma message("Compiling on Windows...")
18-
#define PLATFORM_WINDOWS
19-
#else
20-
#pragma message("Compiling on unknown platform...")
21-
#endif
22-
23-
// Check compiler
24-
#if defined(_MSC_VER)
25-
#pragma message("Compiling with VC++...")
26-
#define COMPILER_VISUAL_CPP
27-
#else
28-
#pragma message("Compiling with unknown compiler...")
29-
#endif
30-
3115
// Check compiler options
3216
#ifdef COMPILER_VISUAL_CPP
3317
#if defined(_CHAR_UNSIGNED)

Externals/OPCODE/OPC_Types.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1111
// Include Guard
1212
#pragma once
13+
#include <stdint.h>
1314
#ifndef __ICETYPES_H__
1415
#define __ICETYPES_H__
1516

@@ -42,8 +43,8 @@ typedef signed short sword; //!< sizeof(sword) must be 2
4243
typedef unsigned short uword; //!< sizeof(uword) must be 2
4344
typedef signed int sdword; //!< sizeof(sdword) must be 4
4445
typedef unsigned int udword; //!< sizeof(udword) must be 4
45-
typedef signed __int64 sqword; //!< sizeof(sqword) must be 8
46-
typedef unsigned __int64 uqword; //!< sizeof(uqword) must be 8
46+
typedef int64_t sqword; //!< sizeof(sqword) must be 8
47+
typedef uint64_t uqword; //!< sizeof(uqword) must be 8
4748
typedef float float32; //!< sizeof(float32) must be 4
4849
typedef double float64; //!< sizeof(float64) must be 4
4950

@@ -68,11 +69,6 @@ typedef udword RTYPE; //!< Relationship-type (!) between owners and references
6869
#define INVALID_KID 0xffff //!< Invalid Kernel ID
6970
#define INVALID_NUMBER 0xDEADBEEF //!< Standard junk value
7071

71-
// Define BOOL if needed
72-
#ifndef BOOL
73-
typedef int BOOL; //!< Another boolean type.
74-
#endif
75-
7672
//! Union of a float and a sdword
7773
typedef union
7874
{

0 commit comments

Comments
 (0)