[btls] Fixes for windows. (#8653)
commitbaf58ed6ebfc24811ec00c4d3f7a264c9cf71a7c
authorJay Krell <jay.krell@cornell.edu>
Thu, 10 May 2018 21:35:27 +0000 (10 14:35 -0700)
committerGitHub <noreply@github.com>
Thu, 10 May 2018 21:35:27 +0000 (10 14:35 -0700)
tree581c4d931c2d12b6aa91c153dda3e3ef2a6f00a7
parenta7bebe779eb773b5eb8d8c5f5fdc9a92daad0f5e
[btls] Fixes for windows. (#8653)

* [btls] Do not give gcc flags to msvc.

* [btls] #include "btls-foo.h" instead of #include <btls-foo.h> to work
with existing build system, on Windows, with out-of-tree build.
Not sure which factor does not like <> but "" should be ok.

* [blts] MONO_API is not used consistently and therefore errors on Windows.
1. Make it be nothing.
1b. Use a .def file if there are actual exports.
Really, .def files are a good idea.

 or

2. Use it consistently.

This does #1.
34 files changed:
mono/btls/CMakeLists.txt
mono/btls/btls-bio.c
mono/btls/btls-bio.h
mono/btls/btls-error.c
mono/btls/btls-key.c
mono/btls/btls-key.h
mono/btls/btls-pkcs12.c
mono/btls/btls-pkcs12.h
mono/btls/btls-ssl-ctx.c
mono/btls/btls-ssl-ctx.h
mono/btls/btls-ssl.c
mono/btls/btls-ssl.h
mono/btls/btls-util.c
mono/btls/btls-util.h
mono/btls/btls-x509-chain.c
mono/btls/btls-x509-chain.h
mono/btls/btls-x509-crl.c
mono/btls/btls-x509-crl.h
mono/btls/btls-x509-lookup-mono.c
mono/btls/btls-x509-lookup-mono.h
mono/btls/btls-x509-lookup.c
mono/btls/btls-x509-lookup.h
mono/btls/btls-x509-name.c
mono/btls/btls-x509-name.h
mono/btls/btls-x509-revoked.c
mono/btls/btls-x509-revoked.h
mono/btls/btls-x509-store-ctx.c
mono/btls/btls-x509-store-ctx.h
mono/btls/btls-x509-store.c
mono/btls/btls-x509-store.h
mono/btls/btls-x509-verify-param.c
mono/btls/btls-x509-verify-param.h
mono/btls/btls-x509.c
mono/btls/btls-x509.h