summaryrefslogtreecommitdiff
path: root/src/lib/elua/elua_api.h
blob: e261ff72260927e5c44fefa5addc6e8b2ccf59d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _EFL_ELUA_API_H
#define _EFL_ELUA_API_H

#ifdef ELUA_API
#error ELUA_API should not be already defined
#endif

#ifdef _WIN32
# ifndef ELUA_STATIC
#  ifdef ELUA_BUILD
#   define ELUA_API __declspec(dllexport)
#  else
#   define ELUA_API __declspec(dllimport)
#  endif
# else
#  define ELUA_API
# endif
# define ELUA_API_WEAK
#else
# ifdef __GNUC__
#  if __GNUC__ >= 4
#   define ELUA_API __attribute__ ((visibility("default")))
#   define ELUA_API_WEAK __attribute__ ((weak))
#  else
#   define ELUA_API
#   define ELUA_API_WEAK
#  endif
# else
#  define ELUA_API
#  define ELUA_API_WEAK
# endif
#endif

#endif