summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file/ecore_file_api.h
blob: 987187f08a433e8ddc4ce93e41d8062d3073b0c0 (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_ECORE_FILE_API_H
#define _EFL_ECORE_FILE_API_H

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

#ifdef _WIN32
# ifndef ECORE_FILE_STATIC
#  ifdef ECORE_FILE_BUILD
#   define ECORE_FILE_API __declspec(dllexport)
#  else
#   define ECORE_FILE_API __declspec(dllimport)
#  endif
# else
#  define ECORE_FILE_API
# endif
# define ECORE_FILE_API_WEAK
#else
# ifdef __GNUC__
#  if __GNUC__ >= 4
#   define ECORE_FILE_API __attribute__ ((visibility("default")))
#   define ECORE_FILE_API_WEAK __attribute__ ((weak))
#  else
#   define ECORE_FILE_API
#   define ECORE_FILE_API_WEAK
#  endif
# else
#  define ECORE_FILE_API
#  define ECORE_FILE_API_WEAK
# endif
#endif

#endif