Eobj: Fixed windows support.

DAMN, Windows is broken...
Thanks to vtorri.

SVN revision: 70409
This commit is contained in:
Tom Hacohen 2012-04-23 08:10:00 +00:00
parent b5a1df1270
commit e8348bf802
2 changed files with 28 additions and 0 deletions

View File

@ -3,6 +3,8 @@ LIST(APPEND EOBJ_CC_SOURCES
eobj_base_class.c
)
ADD_DEFINITIONS(-D_EOBJ_BUILD=1)
include_directories(
${EINA_INCLUDE_DIRS}
)

View File

@ -4,6 +4,32 @@
#include <stdarg.h>
#include <Eina.h>
#ifdef EAPI
# undef EAPI
#endif
#ifdef _WIN32
# ifdef _EOBJ_BUILD
# ifdef DLL_EXPORT
# define EAPI __declspec(dllexport)
# else
# define EAPI
# endif /* ! DLL_EXPORT */
# else
# define EAPI __declspec(dllimport)
# endif /* ! _EOBJ_BUILD */
#else
# ifdef __GNUC__
# if __GNUC__ >= 4
# define EAPI __attribute__ ((visibility("default")))
# else
# define EAPI
# endif
# else
# define EAPI
# endif
#endif /* ! _WIN32 */
/**
* @var _eobj_class_creation_lock
* This variable is used for locking purposes in the class_get function