ai_api.h
1 /*
2  * Arnold API header file
3  * Copyright (c) 1998-2009 Marcos Fajardo, (c) 2009-2013 Solid Angle SL
4  */
5 
11 #pragma once
12 
13 #ifdef __cplusplus
14 #define AI_EXTERN_C extern "C"
15 #else
16 #define AI_EXTERN_C extern
17 #endif
18 
19 /*
20  * Public functions need a special declaration in Win32
21  */
22 #ifdef _WIN32
23 #ifdef _ARNOLDDLL
24 #define AI_API AI_EXTERN_C __declspec(dllexport)
25 #else
26 #define AI_API AI_EXTERN_C __declspec(dllimport)
27 #endif
28 #else
29 #define AI_API AI_EXTERN_C __attribute__(( visibility("default") ))
30 #endif

© 2009-2013 Solid Angle SL · all rights reserved · www.solidangle.com