epiddefs.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #if defined(SHARED)
  21. #if defined(_WIN32)
  22. #ifdef EXPORT_EPID_APIS
  23. #define EPID_API __declspec(dllexport)
  24. #else
  25. #define EPID_API __declspec(dllimport)
  26. #endif
  27. #else // defined(_WIN32)
  28. #if __GNUC__ >= 4
  29. #define EPID_API __attribute__((visibility("default")))
  30. #else
  31. #define EPID_API
  32. #endif
  33. #endif // defined(_WIN32)
  34. #else // defined(SHARED)
  35. #define EPID_API
  36. #endif // defined(SHARED)
  37. #endif // EPID_COMMON_EPIDDEFS_H_