summaryrefslogtreecommitdiff
path: root/graphics/plotutils/files/patch-libplot_i__rle.c
blob: 862969ff4e2370693d58f7fd3cb14a60780c4175 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$FreeBSD$

--- libplot/i_rle.c.orig	Sun Jun 27 11:58:10 1999
+++ libplot/i_rle.c	Thu Aug  7 11:48:12 2003
@@ -78,7 +78,7 @@
   else if (rle->outstream)
     {
       rle->outstream->put ((unsigned char)(rle->oblen));
-      rle->outstream->write (&(rle->oblock[0]), rle->oblen);
+      rle->outstream->write ((const char*)&(rle->oblock[0]), rle->oblen);
     }
 #endif  
 
@@ -416,7 +416,7 @@
 /* create new RLE struct, which writes to a specified stream */
 rle_out *
 #ifdef LIBPLOTTER
-_rle_init (FILE *fp, ostream *out, int bit_depth)
+_rle_init (FILE *fp, std::ostream *out, int bit_depth)
 #else
 #ifdef _HAVE_PROTOS
 _rle_init (FILE *fp, int bit_depth)