Re: SoupInputStream / trying out gio
- From: "Nikolai Weibull" <now bitwi se>
- To: "Morten Welinder" <mwelinder gmail com>
- Cc: "gtk-devel-list gnome org" <gtk-devel-list gnome org>, Alexander Larsson <alexl redhat com>
- Subject: Re: SoupInputStream / trying out gio
- Date: Wed, 5 Dec 2007 15:29:42 +0100
On Dec 5, 2007 3:24 PM, Morten Welinder <mwelinder gmail com> wrote:
> > Specially as you can use #undef in your C code, when stuck with a
> > platform doing such stupidities...
>
> Aha, a member of the standards-don't-apply-to-me school, :-)
>
> Yes, you might #undef, but then you would not be able to use the
> corresponding library function anymore. For example, if a platform
> does
>
> #define stat stat64
>
> then you are going to have problems with anything that wanted to call
> stat and anything that uses "struct stat" -- in the latter case, the structure
> likely changed size which isn't healthy.
Perhaps beside the point, but one wouldn't introduce this problem had
one written
#define stat(path, buf) stat64(path, buf)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]