• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*############################################################################
2   # Copyright 2017 Intel Corporation
3   #
4   # Licensed under the Apache License, Version 2.0 (the "License");
5   # you may not use this file except in compliance with the License.
6   # You may obtain a copy of the License at
7   #
8   #     http://www.apache.org/licenses/LICENSE-2.0
9   #
10   # Unless required by applicable law or agreed to in writing, software
11   # distributed under the License is distributed on an "AS IS" BASIS,
12   # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   # See the License for the specific language governing permissions and
14   # limitations under the License.
15   ############################################################################*/
16 /// Common SDK macro definitions
17 /*! \file */
18 #ifndef EPID_COMMON_EPIDDEFS_H_
19 #define EPID_COMMON_EPIDDEFS_H_
20 
21 #if defined(SHARED)
22 #if defined(_WIN32)
23 #ifdef EXPORT_EPID_APIS
24 #define EPID_API __declspec(dllexport)
25 #else
26 #define EPID_API __declspec(dllimport)
27 #endif
28 #else  // defined(_WIN32)
29 #if __GNUC__ >= 4
30 #define EPID_API __attribute__((visibility("default")))
31 #else
32 #define EPID_API
33 #endif
34 #endif  // defined(_WIN32)
35 #else   // defined(SHARED)
36 #define EPID_API
37 #endif  // defined(SHARED)
38 
39 #endif  // EPID_COMMON_EPIDDEFS_H_
40