component_f.h 447 B

123456789101112131415161718192021
  1. // Copyright The OpenTelemetry Authors
  2. // SPDX-License-Identifier: Apache-2.0
  3. // Make the entry point visible, loaded dynamically
  4. #if defined(_MSC_VER)
  5. // component_f is a DLL
  6. # ifdef BUILD_COMPONENT_F
  7. __declspec(dllexport)
  8. # else
  9. __declspec(dllimport)
  10. # endif
  11. #else
  12. // component_f is a shared library (*.so)
  13. // component_f is compiled with visibility("hidden"),
  14. __attribute__((visibility("default")))
  15. #endif
  16. void do_something_in_f();