acmstrenc.h 972 B

12345678910111213141516171819202122232425262728293031
  1. // 下列 ifdef 块是创建使从 DLL 导出更简单的
  2. // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 ACMSTRENC_EXPORTS
  3. // 符号编译的。在使用此 DLL 的
  4. // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
  5. // ACMSTRENC_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
  6. // 符号视为是被导出的。
  7. #ifdef _WIN32
  8. #ifdef ACMSTRENC_EXPORTS
  9. #define ACMSTRENC_API _declspec(dllexport)
  10. #else
  11. #define ACMSTRENC_API _declspec(dllimport)
  12. #endif
  13. #elif defined(__GNUC__)
  14. #if __GNUC__ >= 4
  15. #define ACMSTRENC_API __attribute__((visibility("default")))
  16. #else
  17. #define ACMSTRENC_API
  18. #endif // __GUNC__ >= 4
  19. #else //_WIN32
  20. #define ACMSTRENC_API
  21. #endif //_WIN32
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. ACMSTRENC_API int encodestring(unsigned char * out ,int outLen,const unsigned char * in,int inLen);
  26. #ifdef __cplusplus
  27. } // extern "C" {
  28. #endif