Re: [AD] CVS: allegro/include/allegro/platform al386gcc.h,1.2,1.3al386vc.h,1.2,1.3 al386wat.h,1.2,1.3 alqnxcfg.h,1.4,1.5 alucfg.h,1.2,1.3 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: conductors@xxxxxxxxxx
- Subject: Re: [AD] CVS: allegro/include/allegro/platform al386gcc.h,1.2,1.3al386vc.h,1.2,1.3 al386wat.h,1.2,1.3 alqnxcfg.h,1.4,1.5 alucfg.h,1.2,1.3
- From: Peter Wang <tjaden@xxxxxxxxxx>
- Date: Sun, 2 Dec 2001 12:29:40 +1100
On 2001-12-01, Stepan Roh <stepan@xxxxxxxxxx> wrote:
> On Sun, 2 Dec 2001, Peter Wang wrote:
>
> > On 2001-12-01, Stepan Roh <stepan@xxxxxxxxxx> wrote:
> > >
> > > I'm doing tests as I said earlier and it's nice that you, Peter, prefixed
> > > fixed classes, but now there is no way how to build Allegro on Irix.
> > > Backward compatibility must be disabled for library itself.
> >
> > For building the library itself only, or for user programs too? I'm
> > not sure I follow. It's probably best just to send a patch.
>
> I have no patch (I have no time right now). But library and examples and
> tests and tools etc. must be built using ALLEGRO_NO_FIX_ALIASES or lib
> won't compile. I solved by adding #define ALLEGRO_NO_FIX_ALIASES on top of
> allegro.h, but it's only a quick'n'dirty solution. Another solution would
> be to not include alcompat.h when building library and realted progs. But
> in both cases, some kind of ALLEGRO_LIBRARY_BUILD should be defined from
> makefile when building library, which will trigger #define
> ALLEGRO_NO_FIX_ALIASES or will disable including of alcompat.h. Hope, this
> clears it, I'm in a hurry :-) Oh, !@#$, I'm late :-)
So the attached patch is ok?
Index: docs/src/allegro._tx
===================================================================
RCS file: /cvsroot/alleg/allegro/docs/src/allegro._tx,v
retrieving revision 1.6
diff -u -r1.6 allegro._tx
--- docs/src/allegro._tx 2001/12/01 13:32:51 1.6
+++ docs/src/allegro._tx 2001/12/02 01:14:28
@@ -6251,6 +6251,9 @@
fixsqrt(). You can disable the aliases by defining the preprocessor macro
ALLEGRO_NO_FIX_ALIASES before including allegro.h.
+Note that we don't provide the backwards compatibility aliases under IRIX
+as it would require too much black magic.
+
@heading
Index: include/allegro/platform/alucfg.h
===================================================================
RCS file: /cvsroot/alleg/allegro/include/allegro/platform/alucfg.h,v
retrieving revision 1.3
diff -u -r1.3 alucfg.h
--- include/allegro/platform/alucfg.h 2001/12/01 13:32:51 1.3
+++ include/allegro/platform/alucfg.h 2001/12/02 01:14:31
@@ -35,6 +35,11 @@
# define O_TEXT 0
#endif
+/* IRIX has things in math.h which conflicts with our aliases. */
+#ifdef __sgi__
+# define ALLEGRO_NO_FIX_ALIASES
+#endif
+
/* These defines will be provided by configure script. */
#undef ALLEGRO_COLOR8
#undef ALLEGRO_COLOR16
- Follow-Ups:
- Re: [AD] CVS: allegro/include/allegro/platform al386gcc.h,1.2,1.3al386vc.h,1.2,1.3al386wat.h,1.2,1.3 alqnxcfg.h,1.4,1.5 alucfg.h,1.2,1.3
- Messages sorted by: [ date | thread ]
- Prev by Date:
Re: [AD] Allegro 5 (6?) - Public Request For Comments
- Next by Date:
Re: [AD] Problems with gcc 3.1
- Previous by thread:
Re: [AD] CVS: allegro/include/allegro/platform al386gcc.h,1.2,1.3al386vc.h,1.2,1.3 al386wat.h,1.2,1.3 alqnxcfg.h,1.4,1.5 alucfg.h,1.2,1.3
- Next by thread:
Re: [AD] CVS: allegro/include/allegro/platform al386gcc.h,1.2,1.3al386vc.h,1.2,1.3al386wat.h,1.2,1.3 alqnxcfg.h,1.4,1.5 alucfg.h,1.2,1.3