api.h 531 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright 2014-2023 The GmSSL Project. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the License); you may
  5. * not use this file except in compliance with the License.
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. */
  9. #ifndef GMSSL_API_H
  10. #define GMSSL_API_H
  11. #ifdef WIN32
  12. #define _gmssl_export __declspec(dllexport)
  13. #else
  14. // use -fvisibility=hidden to change the "default" behavior
  15. // #define _gmssl_export __attribute__((visibility("default")))
  16. #define _gmssl_export
  17. #endif
  18. #endif