Skip to content

Commit 2b09821

Browse files
committed
Permit compilation under strict ANSI C mode.
This requires testing the __STRICT_ANSI__ macro.
1 parent d0a01fc commit 2b09821

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/util/integerfactoring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static uint64_t gaIAvgMod (uint64_t a, uint64_t b, uint64_t m){
254254
}
255255

256256
static uint64_t gaIMulMod (uint64_t a, uint64_t b, uint64_t m){
257-
#if (__GNUC__ >= 4) && defined(__x86_64__)
257+
#if (__GNUC__ >= 4) && defined(__x86_64__) && !defined(__STRICT_ANSI__)
258258
uint64_t r;
259259

260260
asm(

0 commit comments

Comments
 (0)