Re: [AD] scanexp.c problems (and patch) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2008-08-10, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> I just compiled Allegro on a clean PC to test something on XP. I
> ended up having to modify scanexp.c to get allegro.def generated
> properly. I'm just not sure of the patch. It's attached. Does it
> look ok? I'm not sure why I didn't have the problem before.
>
> Trent :{)>
> Index: misc/scanexp.c
> ===================================================================
> --- misc/scanexp.c (revision 10333)
> +++ misc/scanexp.c (working copy)
> @@ -3,6 +3,7 @@
> *
> * By Michael Rickmann.
> */
> +#define SCAN_DEPEND
I'm not sure why it wasn't just defined in this file, since
misc/fixdll.sh and misc/fixdll.bat always defines it when compiling. So
I guess it's fine, but you should delete -DSCAN_DEPEND from fixdll.* then.
> #define AL_VAR(type, name) allexpvar name##_sym
> @@ -28,7 +29,7 @@
> #elif defined ALLEGRO_WINAPI
>
> #define ALLEGRO_H
> - #include "allegro5/platform/alplatf.h"
> + //#include "allegro5/platform/alplatf.h"
> #include "allegro5/winalleg.h"
> #include "allegro5/platform/alwin.h"
Would this be because when you use CMake out-of-source builds the
alplatf.h is generated in a different directory, so it can't be found?
Peter