Skip to content

Commit 5ac1bca

Browse files
committed
Build fix when NO_MNEMONICS is defined.
1 parent d948013 commit 5ac1bca

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

bddisasm/bdx86_helpers.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ NdGetOperandMini(
10171017
}
10181018

10191019

1020+
#ifndef BDDISASM_NO_MNEMONIC
10201021
//
10211022
// NdGetMnemonicMini
10221023
//
@@ -1040,3 +1041,4 @@ NdGetMnemonicMini(
10401041

10411042
return NdIdbeGetMnemonic(pIdbe->Mnemonic);
10421043
}
1044+
#endif

bddisasm/bdx86_idbe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ NdIdbeGetEntry(
2727
}
2828

2929

30+
#ifndef BDDISASM_NO_MNEMONIC
3031
//
3132
// NdIdbeGetMnemonic
3233
//
@@ -42,3 +43,4 @@ NdIdbeGetMnemonic(
4243

4344
return gMnemonics[Index];
4445
}
46+
#endif

inc/bdx86_api_mini.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,12 @@ NdGetOperandMini(
133133
ND_OPERAND *Operand
134134
);
135135

136+
#ifndef BDDISASM_NO_MNEMONIC
136137
const char *
137138
NdGetMnemonicMini(
138139
const INSTRUX_MINI *Instrux
139140
);
141+
#endif
140142

141143

142144
#endif // BDX86_API_MINI_H

0 commit comments

Comments
 (0)