Did you test this on 10.4?
I just had a look at this same mess in libftgl1, and there you get the 
following choice:

With
typedef GLvoid (*GLUTesselatorFunction)();
on 10.4:
    invalid conversion from 'GLvoid (*)()' to 'GLvoid (*)(...)'
on 10.5: OK.

with
typedef GLvoid (*GLUTesselatorFunction)(...);
on 10.4: OK.
on 10.5:
    invalid conversion from 'GLvoid (*)(...)' to 'GLvoid (*)()'

That's why the libftgl1 maintainer put some condition on the gcc version 
there. Instead of a gcc version problem, this is more likely a problem 
with glut.h versions, though.

--
Martin

Alexander Hansen wrote:
> Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci
> In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv15710
> 
> Modified Files:
>       octplot.info octplot.patch 
> Log Message:
> Let non-pc 10.5 people have this too.
> 
> 
> Index: octplot.patch
> ===================================================================
> RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci/octplot.patch,v
> retrieving revision 1.2
> retrieving revision 1.3
> diff -u -d -r1.2 -r1.3
> --- octplot.patch     4 Nov 2007 11:39:29 -0000       1.2
> +++ octplot.patch     17 Jun 2008 23:41:11 -0000      1.3
> @@ -79,3 +79,15 @@
>       @list='$(nodist_octplotm_DATA)'; for p in $$list; do \
>         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
>         f=$(am__strip_dir) \
> +diff -Naur octplot-0.4.0/src/glutesscb.h 
> octplot-0.4.0.patched/src/glutesscb.h
> +--- octplot-0.4.0/src/glutesscb.h    2007-04-12 10:50:07.000000000 -0700
> ++++ octplot-0.4.0.patched/src/glutesscb.h    2008-05-26 16:55:45.000000000 
> -0700
> +@@ -20,7 +20,7 @@
> + // Taken from FTGL/FTVectoriser.cpp
> + 
> + #ifdef __APPLE_CC__    
> +-    typedef GLvoid (*GLUTesselatorFunction)(...);
> ++    typedef GLvoid (*GLUTesselatorFunction)();
> + #elif defined ( WIN32)
> +     typedef GLvoid (CALLBACK *GLUTesselatorFunction)( );
> + #elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) 
> || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__) || 
> defined(__GLIBC__)


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to