diff --git a/src/gemm.c b/src/gemm.c index 112bed94..4948fbef 100644 --- a/src/gemm.c +++ b/src/gemm.c @@ -477,8 +477,6 @@ void transpose_bin(char *A, char *B, const int n, const int m, } */ -#else -extern void transpose_32x32_bits_reversed_diagonale(uint32_t* A, uint32_t* B, int m, int n); #endif // transpose by 32-bit diff --git a/src/gemm.h b/src/gemm.h index e93ee0e4..de8a5e1a 100644 --- a/src/gemm.h +++ b/src/gemm.h @@ -59,7 +59,7 @@ void im2col_cpu_custom_transpose(float* data_im, void activate_array_cpu_custom(float *x, const int n, const ACTIVATION a); -LIB_API void transpose_32x32_bits_reversed_diagonale(uint32_t *A, uint32_t *B, int m, int n); +void transpose_32x32_bits_reversed_diagonale(uint32_t *A, uint32_t *B, int m, int n); void gemm_bin(int M, int N, int K, float ALPHA, char *A, int lda, diff --git a/src/gettimeofday.c b/src/gettimeofday.c index b47d3cd7..1db060cb 100644 --- a/src/gettimeofday.c +++ b/src/gettimeofday.c @@ -1,7 +1,7 @@ #ifdef _WIN32 #include "gettimeofday.h" -LIB_API int gettimeofday(struct timeval* tp, struct timezone* tzp) +int gettimeofday(struct timeval* tp, struct timezone* tzp) { static const uint64_t EPOCH = ((uint64_t)116444736000000000ULL); SYSTEMTIME system_time; @@ -19,7 +19,7 @@ LIB_API int gettimeofday(struct timeval* tp, struct timezone* tzp) return 0; } -LIB_API int clock_gettime(int dummy, struct timespec* ct) +int clock_gettime(int dummy, struct timespec* ct) { LARGE_INTEGER count; diff --git a/src/gettimeofday.h b/src/gettimeofday.h index f92c841d..4a9df673 100644 --- a/src/gettimeofday.h +++ b/src/gettimeofday.h @@ -28,8 +28,8 @@ extern "C" { static unsigned char g_first_time = 1; static LARGE_INTEGER g_counts_per_sec; -LIB_API int gettimeofday(struct timeval*, struct timezone*); -LIB_API int clock_gettime(int, struct timespec*); +int gettimeofday(struct timeval*, struct timezone*); +int clock_gettime(int, struct timespec*); #ifdef __cplusplus } diff --git a/src/image.h b/src/image.h index 20170932..be947d34 100644 --- a/src/image.h +++ b/src/image.h @@ -93,9 +93,9 @@ image load_image(char *filename, int w, int h, int c); image **load_alphabet(); #ifdef OPENCV -LIB_API image get_image_from_stream(CvCapture* cap); -LIB_API image get_image_from_stream_cpp(CvCapture* cap); -LIB_API image ipl_to_image(IplImage* src); +image get_image_from_stream(CvCapture* cap); +image get_image_from_stream_cpp(CvCapture* cap); +image ipl_to_image(IplImage* src); #endif //float get_pixel(image m, int x, int y, int c); //float get_pixel_extend(image m, int x, int y, int c); diff --git a/src/lstm_layer.h b/src/lstm_layer.h index ae544148..f60a0cab 100644 --- a/src/lstm_layer.h +++ b/src/lstm_layer.h @@ -9,7 +9,7 @@ #ifdef __cplusplus extern "C" { #endif -LIB_API layer make_lstm_layer(int batch, int inputs, int outputs, int steps, int batch_normalize); +layer make_lstm_layer(int batch, int inputs, int outputs, int steps, int batch_normalize); void forward_lstm_layer(layer l, network_state state); void update_lstm_layer(layer l, int batch, float learning_rate, float momentum, float decay);