Skip to content

Commit

Permalink
explicitly undef __CET__ on masm cpp
Browse files Browse the repository at this point in the history
Some systems (e.g. OpenBSD) unconditionally set __CET__ in the C
preprocessor.
  • Loading branch information
busterb committed Mar 28, 2024
1 parent 1ead2d2 commit 3cdd43b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ $CP crypto/compat/ui_openssl_win.c crypto/ui
$GREP -v OPENSSL_ia32cap_P $libcrypto_src/Symbols.list | $GREP '^[A-Za-z0-9_]' > crypto/crypto.sym

fixup_masm() {
cpp -I./crypto -I./include/compat -D_MSC_VER $1 \
cpp -I./crypto -I./include/compat -D_MSC_VER -U__CET__ $1 \
| sed -e 's/^#/;/' \
| sed -e 's/|/OR/g' \
| sed -e 's/~/NOT/g' \
Expand Down

0 comments on commit 3cdd43b

Please sign in to comment.