Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Rob Lemley 1721efbbc5 Bug 1664885 - [RNP] Use RNP's built-in support for MSVC rather than our own. r=kaie
With https://github.com/rnpgp/rnp/pull/1232 being merged upstream, we can
remove most of the workarounds from the niwcompat directory.
What remains is dirent.h, which RNP pulls in via vcpkg and an empty getopt.h
header file.
getopt itself is not required by librnp.so, it's only used by some commandline
utilities. However, uniwin.h imports it unconditionally so an empty header file
is included for compatibilty.

Differential Revision: https://phabricator.services.mozilla.com/D90161

--HG--
extra : moz-landing-system : lando
2020-09-14 20:25:22 +00:00
Rob Lemley ba96d00476 Bug 1621785 - Follow-up: Fix lint tests. rs=butsage-fix
The third-party code should not be checked, added fixes for remaining failures.
2020-04-15 14:10:17 -04:00
Rob Lemley 3ecb036a24 Bug 1621785 - Compatibility headers for building RNP with clang-cl. r=kaie
These are missing defines and a few functions that are used by
the RNP library but are not part of the Microsoft runtime.

dirent.h is an MIT licensed "header" file that contains opendir(),
readdir(), and closedir() for Windows. Copyright and license are
included in the file itself.

sys/time.h contains an implementation of gettimeofday() for Windows
that's used in rnp/src/lib/crypto/s2k.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D70739

--HG--
extra : moz-landing-system : lando
2020-04-14 22:29:01 +00:00