决定使用 CPP 库处理 xls 问题
This commit is contained in:
28
lib_cpp/include/xlsx_reader.h
Normal file
28
lib_cpp/include/xlsx_reader.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef XLSX_READER_H
|
||||
#define XLSX_READER_H
|
||||
|
||||
#if defined(_WIN32)
|
||||
#if defined(XLSX_BUILD_SHARED)
|
||||
#define XLSX_API __declspec(dllexport)
|
||||
#else
|
||||
#define XLSX_API __declspec(dllimport)
|
||||
#endif
|
||||
#elif defined(__GNUC__) || defined(__clang__)
|
||||
#define XLSX_API __attribute__((visibility("default")))
|
||||
#else
|
||||
#define XLSX_API
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
XLSX_API char* xlsx_read_first_sheet(const char* filepath);
|
||||
|
||||
XLSX_API void xlsx_free_string(char* str);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user