[Vala] Typedeffing globally with Vala



Hi folks, Right now, I have the following Vala source code :
#if G_OS_WIN32
int64 mymvar;
#else
Posix.off_t myvar;
#endif vapimethod (myvar); And in my VAPI :
#if G_OS_WIN32
void vapimethod (int64 var);
#else
void vapimethod (Posix.off_t var);
#endif

I'd like to be able to do the following, as this is possible in C :
#ifdef G_OS_WIN32
typedef int64 Posix.off_t;
#endif So I'd only have to put this at the beginning of my code, and I won't need to change the rest of the code nor the VAPI. Is it possible in Vala ? I know the "typedef" keywork doesn't exist here.
Regards,
Tarnyko


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]