@@ -57,6 +57,7 @@ extern "C" {
5757#define __USE_SVID
5858#endif
5959
60+ #include "exports.h"
6061#ifdef BUILD_KERNEL
6162#include "config_kernel.h"
6263#else
@@ -209,8 +210,10 @@ extern "C" {
209210
210211#ifdef NEEDBUNDERSCORE
211212#define BLASFUNC (FUNC ) FUNC##_
213+ #define OPENBLAS_API (FUNC ) OPENBLAS_EXPORT FUNC##_
212214#else
213215#define BLASFUNC (FUNC ) FUNC
216+ #define OPENBLAS_API (FUNC ) OPENBLAS_EXPORT FUNC
214217#endif
215218
216219#undef USE_PTHREAD_LOCK
@@ -761,13 +764,13 @@ int get_num_proc (int);
761764int get_node_equal (void );
762765#endif
763766
764- void goto_set_num_threads (int );
767+ OPENBLAS_EXPORT void goto_set_num_threads (int );
765768
766769/* Cooperative cancellation of in-flight operations
767770 * (implemented in driver/others/openblas_cancel.c). These symbols are
768771 * exported without SYMBOLPREFIX/SYMBOLSUFFIX decoration. */
769772size_t * openblas_cancel_token (void );
770- void openblas_cancel (size_t * token , size_t loaded_token );
773+ OPENBLAS_EXPORT void openblas_cancel (size_t * token , size_t loaded_token );
771774
772775/* Internal helpers for the instrumented compute drivers. */
773776size_t openblas_cancel_begin (void );
@@ -905,7 +908,7 @@ typedef void (*openblas_xerbla_handler)(const char *name,
905908 const blasint * info ,
906909 size_t name_length );
907910#endif
908- openblas_xerbla_handler openblas_set_xerbla (openblas_xerbla_handler handler );
911+ OPENBLAS_EXPORT openblas_xerbla_handler openblas_set_xerbla (openblas_xerbla_handler handler );
909912#ifdef __cplusplus
910913}
911914#endif
0 commit comments