Re: [AD] MacOS X dependency bug fix? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Tuesday 12 April 2005 22:11, Evert Glebbeek wrote:
> Found the problem, which is actually not with Allegro but with my system.
> It seems that my installation of GCC did not have Objective-C support, so
> dependencies were not generated correctly. I'm reemerging gcc with
> ObjectiveC enabled, which will hopefully fix the problem.
Strangely enough, I still get an erroneous dependency for mach-o/arch.h. I
came up with the attached patch, which does seem to solve the issue. It
also replaces #include <...> with #include "..." for Allegro-specific
headers, to be consistent with the other MacOSX files.
I'll ask for this to be tested.
Evert
Index: src/macosx/pcpu.m
===================================================================
RCS file: /cvsroot/alleg/allegro/src/macosx/pcpu.m,v
retrieving revision 1.1
diff -u -r1.1 pcpu.m
--- src/macosx/pcpu.m 15 Mar 2005 20:34:49 -0000 1.1
+++ src/macosx/pcpu.m 13 Apr 2005 20:05:11 -0000
@@ -12,9 +12,12 @@
*
* See readme.txt for copyright information.
*/
-#include <allegro.h>
-#include <allegro/internal/aintern.h>
-#include <mach-o/arch.h>
+#include "allegro.h"
+#include "allegro/internal/aintern.h"
+
+#ifndef SCAN_DEPEND
+ #include <mach-o/arch.h>
+#endif
void check_cpu() {
const NXArchInfo* info=NXGetLocalArchInfo();