AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Api.h
1 //
2 // Copyright 2017 Animal Logic
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.//
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 #if defined _WIN32 || defined __CYGWIN__
18  #ifdef AL_USDMAYA_EXPORT
19  #ifdef __GNUC__
20  #define AL_USDMAYA_PUBLIC __attribute__ ((dllexport))
21  #else
22  #define AL_USDMAYA_PUBLIC __declspec(dllexport)
23  #endif
24  #else
25  #ifdef __GNUC__
26  #define AL_USDMAYA_PUBLIC __attribute__ ((dllimport))
27  #else
28  #define AL_USDMAYA_PUBLIC __declspec(dllimport)
29  #endif
30  #endif
31  #define AL_USDMAYA_LOCAL
32 #else
33  #if __GNUC__ >= 4
34  #define AL_USDMAYA_PUBLIC __attribute__ ((visibility ("default")))
35  #define AL_USDMAYA_LOCAL __attribute__ ((visibility ("hidden")))
36  #else
37  #define AL_USDMAYA_PUBLIC
38  #define AL_USDMAYA_LOCAL
39  #endif
40 #endif