----- "Peter Wehrfritz" <[EMAIL PROTECTED]> ha scritto:
> Carsten Haitzler (The Rasterman) schrieb:
> > On Thu, 14 Aug 2008 11:01:59 +0200 _doof <[EMAIL PROTECTED]>
> babbled:
> >
> > both of these are c99 issues... and yes - we require c99. thus.. i
> guess
> > opensolaris is unsupported until it vatches up to last millenium
> (1999) :)
> > (sorry we can go around patching code to not use x99 just for
> solaris - but well
> > you do have the option to upgrade a modern OS like linux and where
> do we stop
> > in terms of supporting legacy operating systems? c89? ultrix (which
> has no
> > shared lib support i.e dlopen will break?).
> >
> > you need to draw the line somewhere - we have it at c99 support. it
> isn't too
> > much to ask of an OS to support a standard from 1999, 9 years later?
> :)
> >
> >
>
> the man page says that strcasestr is a non standard function.
Is there a standard function that do the same job? I can't find any :(
Thanks...and sorry for the long reply-time ;)
Dave
> >> hi
> >>
> >> little problem exist to compil e17 on opensolaris
> >>
> >> 1/ ETK
> >>
> >> e17/libs/etk/src/bin/etk_combobox_test.c file use strcasestr
> which
> >> doesnt exist on opensolaris. i need to add this line to compil etk
> >>
> >> char *strcasestr(register char *s, register char *find)
> >> {
> >> register char c, sc;
> >> register size_t len;
> >> if ((c = *find++) != 0) {
> >> len = strlen(find);
> >> do {
> >> do {
> >> if ((sc = *s++) == 0)
> >> return (NULL);
> >> } while (sc != c);
> >>
>
> This is wrong, sc might be upper case where c is lower case, so
> tolower(sc) != tolower(c) would be better. I don't know where you have
>
> this implementation from, but it might better to take one that is well
>
> tested. e16 has one, google codesearch shows that freebsd has one,too
> ,
> or since etk is lgpled you can also take the glibc implementation.
>
> >> } while (strncasecmp(s, find, len) != 0);
> >> s--;
> >> }
> >> return ((char *) s);
> >> }
> >>
> >> 2/ E
> >>
> >> to compil e_slider.c file, i need to add --std=c99
> >>
> >> gcc -m64 -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src/bin
> >> -I../../src/lib -DUSE_E_CONFIG_H -DHAVE_EDBUS -I/opt/e17/include
> >> -I/opt/e17/include/efreet -I/usr/sfw/include -I/usr/include/curl
> >> -I/opt/e17/include -I/usr/include/dbus-1.0
> -I/usr/lib/dbus-1.0/include
> >> -I/opt/e17/include -I/usr/openwin/include -DLOWRES_PDA=1
> >> -DMEDIUMRES_PDA=2 -DHIRES_PDA=3 -DSLOW_PC=4 -DMEDIUM_PC=5
> -DFAST_PC=6
> >> -DE17_PROFILE=SLOW_PC -DPACKAGE_BIN_DIR=\"/opt/e17//bin\"
> >> -DPACKAGE_LIB_DIR=\"/opt/e17//lib\"
> >> -DPACKAGE_DATA_DIR=\"/opt/e17//share/enlightenment\"
> >> -DLOCALE_DIR=\"/opt/e17//share/locale\"
> >> -DPACKAGE_SYSCONF_DIR=\"/opt/e17//etc\" -g -O2
> -fomit-frame-pointer
> >> -pipe -msse -msse2 -msse3 -m3dnow -mmmx -I/opt/e17/include
> >> -I/usr/local/include -I/usr/sfw/include -I/opt/csw/include
> >> -I/usr/include -MT e_slider.o -MD -MP -MF .deps/e_slider.Tpo -c -o
> >> e_slider.o e_slider.c
> >> In file included from
> >> /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/include/stdio.h:54,
> >> from e.h:28,
> >> from e_slider.c:5:
> >> /usr/include/sys/feature_tests.h:357:2: #error "Compiler or
> options
> >> invalid; UNIX 03 and POSIX.1-2001 applications require the use
> of
> >> c99"
> >>
> >> i hope this comment can help you :)
> >>
> >> ++
> >>
> >>
> -------------------------------------------------------------------------
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> enlightenment-devel mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >>
> >>
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel