Re: mixing (exclusively) g_malloc and malloc, gint, and int
- From: Zeeshan Ali <zeenix gmail com>
- To: cali <calculus softhome net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: mixing (exclusively) g_malloc and malloc, gint, and int
- Date: Tue, 30 Nov 2004 09:38:02 +0500
Hello,
Is there something which will always be defined when a glib using app is
compiled? then maybe I could add something to the CA c file like:
#ifndef GLIB
#define g_malloc malloc
#define gint int
#endif
then I could use g_malloc and gint in the code and it wouldn't matter if the
libraries were not linked.
For the basic data types you can simply use a modified version
of glib/gtypes.h . Thats what i do with some headers i need in my gtk
app as well as my kernel modules, but you wont have to change much.
Bye.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]