Skip to content

Commit

Permalink
define _MSC_VER when preprocessing, add guards
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed Feb 26, 2024
1 parent 950b5bc commit 53edbd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion include/compat/cet.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
#define LIBCOMPAT_CET_H

#ifndef _MSC_VER
#include_next <cet.h>

#ifdef __CET__
# include_next <cet.h>
#else
# define _CET_ENDBR
#endif

#endif

#endif
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 $1 \
cpp -I./crypto -I./include/compat -D_MSC_VER $1 \
| sed -e 's/^#/;/' \
| sed -e 's/|/OR/g' \
| sed -e 's/~/NOT/g' \
Expand Down

0 comments on commit 53edbd0

Please sign in to comment.