]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/win32,dokan: include bcrypt.h for NTSTATUS
authorKefu Chai <tchaikov@gmail.com>
Thu, 21 Jul 2022 23:28:37 +0000 (07:28 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 8 Sep 2022 11:14:02 +0000 (13:14 +0200)
commit8589bc0d40856ab338b3c8e02e7a29637fa42fbc
tree35128723b4a9dfcaf4e9cc674d309e8173826126
parentbdd38a276244bfe954fead033d5a460acb02ed55
common/win32,dokan: include bcrypt.h for NTSTATUS

to avoid the conflicting declaration of NTSTATUS from bcrypt.h and our
own typedef. as after switching to boost 1.79, we would have following compiling
failure:

In file included from ../src/dokan/options.cc:14:
../src/dokan/ceph_dokan.h:16:15: error: conflicting declaration 'typedef DWORD NTSTATUS'
   16 | typedef DWORD NTSTATUS;
      |               ^~~~~~~~
In file included from ../build.deps/mingw/boost/include/boost/asio/impl/connect_pipe.ipp:29,
                 from ../build.deps/mingw/boost/include/boost/asio/connect_pipe.hpp:79,
                 from ../build.deps/mingw/boost/include/boost/asio.hpp:64,
                 from ../src/include/win32/winsock_wrapper.h:20,
                 from <command-line>:
/usr/share/mingw-w64/include/bcrypt.h:27:16: note: previous declaration as 'typedef LONG NTSTATUS'
   27 |   typedef LONG NTSTATUS,*PNTSTATUS;
      |                ^~~~~~~~

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 1a09e520bf26f61cb048d9d3d3876f284af64b04)
src/dokan/ceph_dokan.h