efl/src/lib/eina/eina_internal.h

57 lines
906 B
C
Raw Normal View History

2017-12-18 17:18:43 -08:00
#ifndef EINA_INTERNAL_H
2017-12-19 09:54:45 -08:00
# define EINA_INTERNAL_H
2017-12-18 17:18:43 -08:00
/*
* eina_internal.h
*
* Lists public functions that are meant for internal use by EFL only and are
* not stable API.
*/
2017-12-19 09:54:45 -08:00
#ifdef EAPI
# undef EAPI
#endif
#ifdef _WIN32
# ifdef EFL_BUILD
2017-12-19 09:54:45 -08:00
# ifdef DLL_EXPORT
# define EAPI __declspec(dllexport)
# else
# define EAPI
# endif
2017-12-19 09:54:45 -08:00
# else
# define EAPI __declspec(dllimport)
# endif
2017-12-19 09:54:45 -08:00
# define EAPI_WEAK
#else
# ifdef __GNUC__
# if __GNUC__ >= 4
# define EAPI __attribute__ ((visibility("default")))
# define EAPI_WEAK __attribute__ ((weak))
# else
# define EAPI
# define EAPI_WEAK
# endif
# else
/**
* @def EAPI
* @brief Used to export functions (by changing visibility).
*/
# define EAPI
# endif
#endif
2017-12-18 17:18:43 -08:00
/**
* @brief Cancels all pending promise/futures.
2017-12-19 09:54:45 -08:00
*
* Internal function. Do not use.
*
* @internal
2017-12-18 17:18:43 -08:00
*/
EAPI void __eina_promise_cancel_all(void);
2017-12-19 09:54:45 -08:00
#undef EAPI
#define EAPI
2017-12-18 17:18:43 -08:00
#endif