On Wednesday, 14 July 2004, at 22:36:27 (-0400),
Mike Frysinger wrote:

> in libast, the size checks are run and the SIZEOF_* defines are
> added to the local config.h ... great, so when you actually build
> libast, it has the proper MEMSET_LONG() macro because it pulls in
> the local config.h ...
> 
> however, when Eterm is built, it does not do similar size checks
> from the configure script and thus has no SIZEOF_* defines ... and
> since the original config.h from libast was not saved ...  when you
> include libast.h from eterm, SIZEOF_LONG is not defined thus the
> MEMSET_LONG() macro and the 32 bit shift voodoo is lost :(

Well, shit.  See, in libast 0.6, sysdefs.h takes care of making sure
these things are defined.  libast 0.5, however, doesn't (IIRC).  Can
you see if this patch fixes the problem?


Index: include/libast.h
===================================================================
RCS file: /cvsroot/enlightenment/eterm/libast/include/libast.h,v
retrieving revision 1.51
diff -u -r1.51 libast.h
--- include/libast.h    29 Jun 2004 21:18:07 -0000      1.51
+++ include/libast.h    15 Jul 2004 02:55:40 -0000
@@ -1137,7 +1137,7 @@
 #endif
 
 /* Fast memset() macro contributed by vendu */
-#if (SIZEOF_LONG == 8)
+#if !defined(SIZEOF_LONG) || (SIZEOF_LONG == 8)
 /** UNDOCUMENTED */
 # define MEMSET_LONG() (l |= l<<32)
 #else




Thanks,
Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[EMAIL PROTECTED]>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "No weapon formed against us shall prosper.  All those who rise
  against us shall fall.  I will not fear what the devil may bring
  me; I am a servant of God."                                 -- Petra


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
enlightenment-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to