Files
rapidocr/include/ppocr/export.h
Cursor AgentandDaniel 3622c4598e feat: add C ABI, Python package, and CPU ISA paths
Expose the PP-OCRv6 engine through a stable C ABI and installable
shared and static libraries, plus a ctypes Python package that follows
the RapidOCR call shape. Keep AVX-512 out of the AVX2 object file and
speed up GEMM accumulate and the AArch64 GEMM tile.

Co-authored-by: Daniel <znsoft@163.com>
2026-10-04 23:40:06 +00:00

24 lines
606 B
C

#ifndef PPOCR_EXPORT_H_
#define PPOCR_EXPORT_H_
/* Shared-library export macro. Static consumers leave PPOCR_API empty.
The shared build compiles with PPOCR_BUILDING_SHARED. Windows consumers
of the DLL define PPOCR_SHARED. */
#if defined(_WIN32)
# if defined(PPOCR_BUILDING_SHARED)
# define PPOCR_API __declspec(dllexport)
# elif defined(PPOCR_SHARED)
# define PPOCR_API __declspec(dllimport)
# else
# define PPOCR_API
# endif
#else
# if defined(PPOCR_BUILDING_SHARED)
# define PPOCR_API __attribute__((visibility("default")))
# else
# define PPOCR_API
# endif
#endif
#endif