summaryrefslogtreecommitdiff
path: root/src/lib/eolian/eolian_api.h
blob: e2cfa7a52468de1bbe978d91f93fc214d23e8d0f (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_EOLIAN_API_H
#define _EFL_EOLIAN_API_H

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

#ifdef _WIN32
# ifndef EOLIAN_STATIC
#  ifdef EOLIAN_BUILD
#   define EOLIAN_API __declspec(dllexport)
#  else
#   define EOLIAN_API __declspec(dllimport)
#  endif
# else
#  define EOLIAN_API
# endif
# define EOLIAN_API_WEAK
#else
# ifdef __GNUC__
#  if __GNUC__ >= 4
#   define EOLIAN_API __attribute__ ((visibility("default")))
#   define EOLIAN_API_WEAK __attribute__ ((weak))
#  else
#   define EOLIAN_API
#   define EOLIAN_API_WEAK
#  endif
# else
#  define EOLIAN_API
#  define EOLIAN_API_WEAK
# endif
#endif

#endif