Lagrange
api.h
1#pragma once
2
3#ifdef LA_IMAGE_STATIC_DEFINE
4 #define LA_IMAGE_API
5#else
6 #ifndef LA_IMAGE_API
7 #ifdef lagrange_image_EXPORTS
8 // We are building this library
9 #if defined(_WIN32) || defined(_WIN64)
10 #define LA_IMAGE_API __declspec(dllexport)
11 #else
12 #define LA_IMAGE_API __attribute__((visibility("default")))
13 #endif
14 #else
15 // We are using this library
16 #if defined(_WIN32) || defined(_WIN64)
17 #define LA_IMAGE_API __declspec(dllimport)
18 #else
19 #define LA_IMAGE_API __attribute__((visibility("default")))
20 #endif
21 #endif
22 #endif
23#endif