Re: [Vala] Typedeffing globally with Vala

2013-07-22 Thread Luca Bruno
On 20/07/2013 20:24, Tarnyko wrote: 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] Typedeffing globally with Vala

2013-07-20 Thread Tarnyko
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