Re: g_remove
- From: Colomban Wendling <lists ban herbesfolles org>
- To: gtk-app-devel-list gnome org
- Subject: Re: g_remove
- Date: Thu, 17 Feb 2011 21:52:50 +0100
Le 17/02/2011 20:46, Costin Chirvasuta a Ãcrit :
On Thu, Feb 17, 2011 at 9:11 PM, Craig Bakalian
<craigbakalian verizon net> wrote:
Hi David and KC,
The <glib/gstdio.h> did the trick. But it is odd behavior.
#include <stdio.h> was already in my includes.
Then g_remove must be a macro for a function in glib/gstdio.h, not stdio.h.
g_remove() is a macro on Unices and a function on other platforms (or if
G_STDIO_NO_WRAP_ON_UNIX is defined) that is defined in glib/gstdio.h.
There's nothing odd or strange behind this, apart perhaps that you need
to include <glib/gstdio.h> but the docs tells you.
And glib/gstdio.h includes all the needed stuff (apart perhaps fcntl.h
-- for open() and creat() -- and utime.h -- for utime() --, but these
have nothing to do with g_rename()). So James Morris' answer was the
one: there was simply a missing include.
Regards,
Colomban
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]