Skip to content

Commit

Permalink
(fix) secp256k1 haeder dir for c-binding compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
MementoRC committed Jun 29, 2024
1 parent 88818d9 commit 715c3be
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cm_library_cffi_headers/compose_cffi_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@ def remove_special_defines(lines, defines):
return [
line
for line in lines
if all(
re.search(f'^\s*#define\s+{define}', line) is None
for define in defines
)
if all(f'#define {define}' not in line for define in defines)
]


def apply_cffi_defines_syntax(lines):
return [re.sub(r'#\s*define\s+(\w+).*', r'#define \1 ...', line) for line in lines]

Expand Down

0 comments on commit 715c3be

Please sign in to comment.