Skip to content

Commit 6a54dd0

Browse files
author
sourcehold
committed
[PROJECT] add polyfill directory for C++03 polyfills
1 parent fd9c326 commit 6a54dd0

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#pragma once
1+
/**
2+
AUTO_GENERATED: DO NOT TOUCH THIS FILE
3+
path: 'precomp/common.hpp'
4+
*/
25

3-
#define MAP_XY_LIMIT 400
4-
#define MAP_XY_LIMIT_INCLUSIVE 399
6+
#pragma once
57

68
namespace Ghidra {
79
typedef void* pointer;
@@ -11,7 +13,7 @@ typedef unsigned char undefined;
1113
// typedef unsigned char bool;
1214
typedef unsigned char byte;
1315
typedef unsigned int dword;
14-
// typedef unsigned long long GUID; // different then the Windows one?
16+
// typedef unsigned long long GUID;
1517
typedef pointer32 ImageBaseOffset32;
1618

1719
typedef long long longlong;
@@ -23,13 +25,13 @@ typedef unsigned long ulong;
2325
typedef unsigned long long ulonglong;
2426
typedef unsigned char undefined1;
2527
typedef unsigned short undefined2;
26-
typedef unsigned int undefined3;
28+
typedef unsigned char undefined3[3];
2729
typedef unsigned int undefined4;
2830
typedef unsigned long long undefined6;
2931
typedef unsigned long long undefined8;
3032
typedef unsigned short ushort;
3133
// typedef short wchar_t;
3234
typedef unsigned short word;
33-
} // namespace Ghidra
35+
}
3436

3537
using namespace Ghidra;

src/precomp/pch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
#pragma once
55

66
#include "addresses-SHC-3BB0A8C1.hpp"
7-
#include "assertion.h"
7+
#include "polyfills/assertion.h"
88
#include "CompileMacros.h"
99
#include "FunctionResolver.h"
1010
#include "StructResolver.h"
1111
#include "TypeUtility.h"
12-
#include "common.h"
12+
#include "common.hpp"
1313
#include "framework.h"

0 commit comments

Comments
 (0)