On Tue, 10 Oct 2000, Alexander Mai wrote:
> Meanwhile we have two versions of incorporated Xpm stuff, being
> lib/Xm/LTXpm.c and lib/Xm-2.0/Xpm.c. This is more or less the same
> stuff, except that the functions have different names _LtXpmFoo
> instead of XpmFoo and perhaps very minor changes.
In Motif 2.1, XpmFoo functions where renamed XmeXpmFoo end there are
macros in XpmP.h defining XpmFoo as XmeXpmFoo and so on. Why don't you do
the same for both versions, since nothing prevents you from having some Xm
2.x stuff in the Xm 1.2 library, provided that you do'nt break
compatibility?
> Shouldn't we try to
> get this done in a single file like
>
> #ifdef XmVERSION >=2
> #define XPMPref Xpm
> #else
> #define XPMPref _LtXpm
> #endif
>
> void XPMPrefFoo(void) {
> ... }
This will not work. Try using '##' to concatenate strings.
--
Carlos A. M. dos Santos
Federal University of Pelotas Meteorological Research Center
Av. Ildefonso Simoes Lopes 2791 Pelotas, RS, Brasil, CEP 96060-290
WWW: http://www.cpmet.ufpel.tche.br RENPAC (X.25): 153231641
Phone: +55 53 277-6767 FAX: +55 53 277-6722