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
|