]> git.apps.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)
committerKefu Chai <tchaikov@gmail.com>
Fri, 22 Jul 2022 16:14:35 +0000 (00:14 +0800)
commit1a09e520bf26f61cb048d9d3d3876f284af64b04
tree9c06c04175a11bf32a94cfb6d35097470b3c302d
parent3c680578b4bad785ae190fdcef934344c0523e04
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>
src/dokan/ceph_dokan.h