Browse code

fix macro collision on AIX

git-svn: trunk@3144

aCaB authored on 2007/07/14 22:12:11
Showing 3 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat Jul 14 14:17:01 CEST 2007 (acab)
2
+------------------------------------
3
+  * libclamav/nsis: fix macro collision on AIX - bb#570
4
+
1 5
 Thu Jul 12 23:17:00 CEST 2007 (edwin)
2 6
 -----------------------------------
3 7
   * libclamav/phishcheck.c: fix (null) FOUND
... ...
@@ -455,7 +455,7 @@ int ZEXPORT nsis_inflate(nsis_z_streamp z)
455 455
       s->sub.trees.table = t = (uInt)b & 0x3fff;
456 456
       if ((t & 0x1f) > 29 || ((t >> 5) & 0x1f) > 29)
457 457
       {
458
-        s->mode = BAD;
458
+        s->mode = NZ_BAD;
459 459
         LEAVE(Z_DATA_ERROR);
460 460
       }
461 461
       /* t = 258 + (t & 0x1f) + ((t >> 5) & 0x1f); */
... ...
@@ -481,7 +481,7 @@ int ZEXPORT nsis_inflate(nsis_z_streamp z)
481 481
 		       &s->sub.trees.tb, &s->sub.trees.bb, s->hufts, &hn);
482 482
         if (t != Z_OK || !s->sub.trees.bb)
483 483
         {
484
-          s->mode = BAD;
484
+          s->mode = NZ_BAD;
485 485
           break;
486 486
         }
487 487
       }
... ...
@@ -527,7 +527,7 @@ int ZEXPORT nsis_inflate(nsis_z_streamp z)
527 527
           if (i + j > 258 + (t & 0x1f) + ((t >> 5) & 0x1f) ||
528 528
               (d == 16 && i < 1))
529 529
           {
530
-            s->mode = BAD;
530
+            s->mode = NZ_BAD;
531 531
             LEAVE(Z_DATA_ERROR);
532 532
           }
533 533
           d = d == 16 ? s->sub.trees.t_blens[i - 1] : 0;
... ...
@@ -559,7 +559,7 @@ int ZEXPORT nsis_inflate(nsis_z_streamp z)
559 559
         }
560 560
         if (t != Z_OK || (bd == 0 && nl > 257))
561 561
         {
562
-          s->mode = BAD;
562
+          s->mode = NZ_BAD;
563 563
           LEAVE(Z_DATA_ERROR);
564 564
         }
565 565
         Tracev((stderr, "inflate:       trees ok\n"));
... ...
@@ -701,7 +701,7 @@ int ZEXPORT nsis_inflate(nsis_z_streamp z)
701 701
     */
702 702
     default: /* we'll call Z_STREAM_ERROR if BAD anyway */
703 703
     bad:
704
-      s->mode = BAD;
704
+      s->mode = NZ_BAD;
705 705
       LEAVE(Z_STREAM_ERROR)
706 706
   }
707 707
 }
... ...
@@ -61,7 +61,7 @@ typedef enum {        /* waiting for "i:"=input, "o:"=output, "x:"=nothing */
61 61
       CODES,    /* processing fixed or dynamic block */
62 62
       DRY,      /* output remaining window bytes */
63 63
       DONE,     /* finished last block, done */
64
-      BAD       /* got a data error--stuck here */
64
+      NZ_BAD       /* got a data error--stuck here */
65 65
 } inflate_mode;
66 66
 
67 67
 /* inflate codes private state */