diff options
| author | Brent Cook <busterb@gmail.com> | 2024-02-25 18:29:14 -0600 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2024-02-25 18:29:14 -0600 |
| commit | 53edbd00c12ee1d27f1b9533933b32781125c758 (patch) | |
| tree | 007e0fedb8d5b9474c5d8f1fe82d4480bf13666f | |
| parent | 950b5bc1fb98c6e394a9aa05ecdb9dbd4253fd76 (diff) | |
| download | portable-53edbd00c12ee1d27f1b9533933b32781125c758.tar.gz portable-53edbd00c12ee1d27f1b9533933b32781125c758.tar.bz2 portable-53edbd00c12ee1d27f1b9533933b32781125c758.zip | |
define _MSC_VER when preprocessing, add guards
| -rw-r--r-- | include/compat/cet.h | 8 | ||||
| -rwxr-xr-x | update.sh | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/compat/cet.h b/include/compat/cet.h index 95517b0..bb845de 100644 --- a/include/compat/cet.h +++ b/include/compat/cet.h | |||
| @@ -7,7 +7,13 @@ | |||
| 7 | #define LIBCOMPAT_CET_H | 7 | #define LIBCOMPAT_CET_H |
| 8 | 8 | ||
| 9 | #ifndef _MSC_VER | 9 | #ifndef _MSC_VER |
| 10 | #include_next <cet.h> | 10 | |
| 11 | #ifdef __CET__ | ||
| 12 | # include_next <cet.h> | ||
| 13 | #else | ||
| 14 | # define _CET_ENDBR | ||
| 15 | #endif | ||
| 16 | |||
| 11 | #endif | 17 | #endif |
| 12 | 18 | ||
| 13 | #endif | 19 | #endif |
| @@ -186,7 +186,7 @@ $CP crypto/compat/ui_openssl_win.c crypto/ui | |||
| 186 | $GREP -v OPENSSL_ia32cap_P $libcrypto_src/Symbols.list | $GREP '^[A-Za-z0-9_]' > crypto/crypto.sym | 186 | $GREP -v OPENSSL_ia32cap_P $libcrypto_src/Symbols.list | $GREP '^[A-Za-z0-9_]' > crypto/crypto.sym |
| 187 | 187 | ||
| 188 | fixup_masm() { | 188 | fixup_masm() { |
| 189 | cpp -I./crypto -I./include/compat $1 \ | 189 | cpp -I./crypto -I./include/compat -D_MSC_VER $1 \ |
| 190 | | sed -e 's/^#/;/' \ | 190 | | sed -e 's/^#/;/' \ |
| 191 | | sed -e 's/|/OR/g' \ | 191 | | sed -e 's/|/OR/g' \ |
| 192 | | sed -e 's/~/NOT/g' \ | 192 | | sed -e 's/~/NOT/g' \ |
