Re: mixing (exclusively) g_malloc and malloc, gint, and int



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]