Skip to content

Commit c00c7ac

Browse files
committed
ec/native: use __extension__ keyword to allow compilation with GCC and -Wpedantic
1 parent 248e940 commit c00c7ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: ec/native/np256_64.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#include <stdint.h>
1919
typedef unsigned char fiat_np256_uint1;
2020
typedef signed char fiat_np256_int1;
21-
typedef signed __int128 fiat_np256_int128;
22-
typedef unsigned __int128 fiat_np256_uint128;
21+
__extension__ typedef signed __int128 fiat_np256_int128;
22+
__extension__ typedef unsigned __int128 fiat_np256_uint128;
2323

2424
#if (-1 & 3) != 3
2525
#error "This code only works on a two's complement system"

Diff for: ec/native/p256_64.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#include <stdint.h>
1919
typedef unsigned char fiat_p256_uint1;
2020
typedef signed char fiat_p256_int1;
21-
typedef signed __int128 fiat_p256_int128;
22-
typedef unsigned __int128 fiat_p256_uint128;
21+
__extension__ typedef signed __int128 fiat_p256_int128;
22+
__extension__ typedef unsigned __int128 fiat_p256_uint128;
2323

2424
#if (-1 & 3) != 3
2525
#error "This code only works on a two's complement system"

0 commit comments

Comments
 (0)