On Sun, Nov 15, 2009 at 02:16:39PM +0100, Werner Smekal wrote:
> Hi Hazen and Andrew,
> 
> I now made the corresponding changes, so that plstdio.c compiles and  
> links for Visual C++ (2008). I have not tested the function though if  
> it works.

Thanks! Currently pl_create_tempfile is only used for the tk bindings
which are probably unix specific. I will probably start to replace 
some of the occurences of tmpfile with pl_create_tempfile for 
consistency.

> > Could you verify that I have the right type (int) for the variable
> > flags? Also, on Windows with mingw32 I'm getting the following warning
> > message:
> >
> > [  9%] Building C object src/CMakeFiles/plplotd.dir/plstdio.c.obj
> > C:\users\hazen\plplot\src\plstdio.c:206:1: warning: "_S_IREAD"  
> > redefined
> > In file included from C:\users\hazen\plplot\src\plstdio.c:31:
> > C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/stat.h: 
> > 39:1:
> > warning: this is the location of the previous definition
> > C:\users\hazen\plplot\src\plstdio.c:207:1: warning: "_S_IWRITE"  
> > redefined
> > C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/stat.h: 
> > 38:1:
> > warning: this is the location of the previous definition
> > [ 10%] Building C object src/CMakeFiles/plplotd.dir/plstripc.c.obj
> 
> I changed the code, so that _S_IREAD and _S_IWRITE are only defined if  
> undefined. This removes the warnings (also for MinGW I assume), but I  
> consider this code "suboptimal".

I just copied the code (including #defines) from one of Alan's links. 
I suspect that they may not be required. We could try removing them
altogether and see if anyone complains?

Andrew

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to