Hello Today, I've tried to compile a simple Elementary example with Visual Studio (Community 2017). I've of course run into issues. I would like to have your opinions about solving them. Here are some of them :
1) some header files are included by Elementary.h, which are provided by mingw-w64, but not Visual Studio. All are actually used for the development of the EFL. Mainly : libgen.h unistd.h fnmatch.h pwd.h and a few others. My solution is just inluding them if we are not on Windows, and not if we are not compiling with Visual Studio. Indeed, i think that we should consider that they exist when developping the EFL, but not when the EFL are used whatever the compiler is used. 2) some types do not exist : pid_t (ecore_common.h iirc) ssize_t (which exist with Visual Studio, it's defined uppercase : SSIZE_T), in eina For those ones, I would like to define them respectively in Ecore_Common.h and eina_types.h, for Visual Studio only (#ifdef _MSC_VER etc...) there is also the case of pthread, but that's another story 3) EINA_DEPRECATED can not be used like with gcc : __declspec(deprecated) exists since visual studio 2005 but must be used int front of the function, and not at the end I would like to add another macro : EINA_MSC_DEPRECATED that will be used in front of functions So, what are your opinion ? thank you Vincent _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
