12345678910111213141516171819202122232425262728293031 |
- // 下列 ifdef 块是创建使从 DLL 导出更简单的
- // 宏的标准方法。此 DLL 中的所有文件都是用命令行上定义的 ACMSTRENC_EXPORTS
- // 符号编译的。在使用此 DLL 的
- // 任何其他项目上不应定义此符号。这样,源文件中包含此文件的任何其他项目都会将
- // ACMSTRENC_API 函数视为是从 DLL 导入的,而此 DLL 则将用此宏定义的
- // 符号视为是被导出的。
- #ifdef _WIN32
- #ifdef ACMSTRENC_EXPORTS
- #define ACMSTRENC_API _declspec(dllexport)
- #else
- #define ACMSTRENC_API _declspec(dllimport)
- #endif
- #elif defined(__GNUC__)
- #if __GNUC__ >= 4
- #define ACMSTRENC_API __attribute__((visibility("default")))
- #else
- #define ACMSTRENC_API
- #endif // __GUNC__ >= 4
- #else //_WIN32
- #define ACMSTRENC_API
- #endif //_WIN32
- #ifdef __cplusplus
- extern "C" {
- #endif
- ACMSTRENC_API int encodestring(unsigned char * out ,int outLen,const unsigned char * in,int inLen);
- #ifdef __cplusplus
- } // extern "C" {
- #endif
|