Skip to content

Commit

Permalink
ec/native: use __extension__ keyword to allow compilation with GCC an…
Browse files Browse the repository at this point in the history
…d -Wpedantic
  • Loading branch information
hannesm committed Feb 3, 2021
1 parent 248e940 commit c00c7ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ec/native/np256_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <stdint.h>
typedef unsigned char fiat_np256_uint1;
typedef signed char fiat_np256_int1;
typedef signed __int128 fiat_np256_int128;
typedef unsigned __int128 fiat_np256_uint128;
__extension__ typedef signed __int128 fiat_np256_int128;
__extension__ typedef unsigned __int128 fiat_np256_uint128;

#if (-1 & 3) != 3
#error "This code only works on a two's complement system"
Expand Down
4 changes: 2 additions & 2 deletions ec/native/p256_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <stdint.h>
typedef unsigned char fiat_p256_uint1;
typedef signed char fiat_p256_int1;
typedef signed __int128 fiat_p256_int128;
typedef unsigned __int128 fiat_p256_uint128;
__extension__ typedef signed __int128 fiat_p256_int128;
__extension__ typedef unsigned __int128 fiat_p256_uint128;

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

0 comments on commit c00c7ac

Please sign in to comment.