Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72c9946

Browse files
committed
Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't supported in ANSI C
1 parent f23e2b6 commit 72c9946

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Modules/_decimal/libmpdec/mpdecimal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ extern "C" {
106106
#endif
107107
#endif
108108

109+
/* ASM isn't available in strict ansi C mode */
110+
#if defined(ASM) && defined(__STRICT_ANSI__)
111+
#undef ASM
112+
#define ANSI
113+
#endif
109114

110115
/* BEGIN CONFIG_64 */
111116
#if defined(CONFIG_64)

0 commit comments

Comments
 (0)