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

CVS: projects/katoob/src katoob.h



----------------------------------------------
From: Mohammed Sameer (sameer)
Date: Wed Nov 24 04:05:09 2004

Update of /home/arabeyes/cvs/projects/katoob/src
In directory sina:/tmp/cvs-serv5058

Modified Files:
	katoob.h 

Log Message:
To fix this error when trying to cross compile for windows:
/usr/lib/gcc/i586-mingw32msvc/3.4.2/../../../../i586-mingw32msvc/include/unistd.h:23: error: conflicting types for 'g_win32_ftruncate'
/home/mohammed/gtkwin32/include/glib-2.0/glib/gwin32.h:72: error: previous declaration of 'g_win32_ftruncate' was here
/usr/lib/gcc/i586-mingw32msvc/3.4.2/../../../../i586-mingw32msvc/include/unistd.h:23: error: conflicting types for 'g_win32_ftruncate'
/home/mohammed/gtkwin32/include/glib-2.0/glib/gwin32.h:72: error: previous declaration of 'g_win32_ftruncate' was here

I had to add this:
/* TODO: More clean way ?? */
#ifdef _WIN32
#ifdef ftruncate
#undef ftruncate
#endif /* ftruncate */
#endif /* _WIN32 */