]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
win32: add missing include header
authorLev Stipakov <lev@openvpn.net>
Thu, 13 May 2021 14:00:39 +0000 (17:00 +0300)
committerGert Doering <gert@greenie.muc.de>
Mon, 17 May 2021 11:17:51 +0000 (13:17 +0200)
Commit 5a571fb0 ("Move utility function from win32.c to win32-util.c")
moved some functions from win32.[ch] to a new win32-util.[ch], but missed
adding new include header, which results in compilation errors like:

    >cryptoapi.c
    >C:\Users\lev\Projects\openvpn\src\openvpn\cryptoapi.c(755,53): error
C2220: the following warning is treated as an error
    >C:\Users\lev\Projects\openvpn\src\openvpn\cryptoapi.c(755,53):
warning C4047: '=': 'const void *' differs in levels of indirection from
'int'

Fix by adding #include "win32-util.h" to "win32.h".

While on it, update vcxproj.filters with a new header so that
it looks "correct" in VS project view.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210513140039.265-1-lstipakov@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22379.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/openvpn.vcxproj.filters
src/openvpn/win32.h

index a4dbb6cd43a8f31960ae84d21f67954d5603764d..3b75eecd0a00cacc553c1268a82efae654d2953f 100644 (file)
     <ClInclude Include="ssl_util.h">
       <Filter>Header Files</Filter>
     </ClInclude>
+    <ClInclude Include="win32-util.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <ResourceCompile Include="openvpn_win32_resources.rc">
index 2357383563252b47926e3b3706006f74d8d48f6d..f075e0aec3ec07f984c9e72d52bcbcab42d54597 100644 (file)
@@ -30,6 +30,7 @@
 #include "mtu.h"
 #include "openvpn-msg.h"
 #include "argv.h"
+#include "win32-util.h"
 
 /* location of executables */
 #define SYS_PATH_ENV_VAR_NAME "SystemRoot"  /* environmental variable name that normally contains the system path */