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 715c3be commit 4dfffd4
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 @@ -18,11 +18,7 @@ def remove_c_includes(lines):


def remove_special_defines(lines, defines):
return [
line
for line in lines
if all(f'#define {define}' not in line for define in defines)
]
return [line for line in lines if not any(f'#define {define}' 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 4dfffd4

Please sign in to comment.