Re: [Plib-devel] PU_USE_NONE & puInit()
Brought to you by:
sjbaker
From: Fay J. F Dr C. U. AFSEO/SK <joh...@eg...> - 2006-10-19 14:42:03
|
Gentlemen, I have put the patch below from Melchior Franz into SVN. If it is not wanted, I can back it out; it is the sole change from 2090 to 2091 in SVN. John F. Fay Technical Fellow, Jacobs/Sverdrup TEAS Group 850-883-1294 joh...@eg... -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Melchior FRANZ Sent: Saturday, May 13, 2006 12:17 PM To: pli...@li... Subject: [Plib-devel] PU_USE_NONE & puInit() Projects that use more than one windowing interface, let's say SDL and GLUT, will probably have puInit() somewhere in their code. If now a third interface is to be added, for which plib has no setup -- using PU_USE_NONE --, then puInit() is undefined and causes an error. Of course, one can put an #ifndef PU_USE_NONE around it, but: would it be acceptable to define it empty in this case (see below)? One worry less for the plib user. m. This patch will probably not apply cleanly, but unfortunately, anonymous cvs is a few weeks(!) behind. Index: pu.h =================================================================== RCS file: /cvsroot/plib/plib/src/pui/pu.h,v retrieving revision 1.152 diff -u -p -r1.152 pu.h --- pu.h 10 Nov 2005 20:21:22 -0000 1.152 +++ pu.h 13 May 2006 17:12:19 -0000 @@ -2180,6 +2180,8 @@ void puSetWindowFuncs ( puGetWindowCallb #elif defined(PU_USE_NATIVE) # include "puNative.h" # define puInit puInitNative +#else +# define puInit() #endif ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |