Browse code

win32: fix warnings

aCaB authored on 2010/01/28 10:06:10
Showing 4 changed files
... ...
@@ -1420,11 +1420,11 @@ static int parseicon(icon_groupset *set, uint32_t rva, cli_ctx *ctx, struct cli_
1420 1420
 	i = matcher->icons[enginesize][x].group[0];
1421 1421
 	j = i % 64;
1422 1422
 	i /= 64;
1423
-	if(!(set->v[0][i] & (1<<j))) continue;
1423
+	if(!(set->v[0][i] & ((uint64_t)1<<j))) continue;
1424 1424
 	i = matcher->icons[enginesize][x].group[1];
1425 1425
 	j = i % 64;
1426 1426
 	i /= 64;
1427
-	if(!(set->v[1][i] & (1<<j))) continue;
1427
+	if(!(set->v[1][i] & ((uint64_t)1<<j))) continue;
1428 1428
 	
1429 1429
 	if(!metrics.ccount && !matcher->icons[enginesize][x].ccount) {
1430 1430
 	    /* BW matching */
... ...
@@ -1520,7 +1520,7 @@ void cli_icongroupset_add(const char *groupname, icon_groupset *set, unsigned in
1520 1520
     else {
1521 1521
 	j = i % 64;
1522 1522
 	i /= 64;
1523
-	set->v[type][i] |= 1<<j;
1523
+	set->v[type][i] |= (uint64_t)1<<j;
1524 1524
     }
1525 1525
 }
1526 1526
 
... ...
@@ -493,7 +493,7 @@
493 493
 /* #undef USE_SYSLOG */
494 494
 
495 495
 /* Version number of package */
496
-#define VERSION "devel-r5076-689-gb957384"
496
+#define VERSION "devel-r5076-703-g0222ee6"
497 497
 
498 498
 /* Version suffix for package */
499 499
 #define VERSION_SUFFIX ""
... ...
@@ -6,7 +6,7 @@
6 6
 	ProjectType="Visual C++"
7 7
 	RootNamespace="clambc"
8 8
 	TargetFrameworkVersion="196613"
9
-	Version="9.00"
9
+	Version="9,00"
10 10
 	>
11 11
 	<Platforms>
12 12
 		<Platform
... ...
@@ -117,6 +117,7 @@
117 117
 			<Tool
118 118
 				AdditionalIncludeDirectories="&quot;$(SolutionDir)&quot;;&quot;$(SolutionDir)..\libclamav&quot;;&quot;$(SolutionDir)compat&quot;;&quot;$(SolutionDir)3rdparty\zlib&quot;;&quot;$(SolutionDir)3rdparty\pthreads&quot;;&quot;$(SolutionDir)3rdparty\bzip2&quot;;&quot;$(SolutionDir)..&quot;"
119 119
 				DebugInformationFormat="3"
120
+				DisableSpecificWarnings="4996;4244"
120 121
 				EnableFunctionLevelLinking="true"
121 122
 				EnableIntrinsicFunctions="true"
122 123
 				Name="VCCLCompilerTool"
... ...
@@ -20,6 +20,10 @@
20 20
 
21 21
 #include <winsock2.h>
22 22
 #include <Ws2tcpip.h>
23
+/* #define W2K_DNSAAPI_COMPAT */
24
+#ifdef W2K_DNSAAPI_COMPAT
25
+#include <Wspiapi.h>
26
+#endif
23 27
 #include "net.h"
24 28
 #include "w32_errno.h"
25 29