Ptex: PtexExports.h Source File

Ptex

PtexExports.h
Go to the documentation of this file.
1 #ifndef PtexExports_h
2 #define PtexExports_h
3 /*
4 PTEX SOFTWARE
5 Copyright 2021 Disney Enterprises, Inc. All rights reserved
6
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are
9 met:
10
11 * Redistributions of source code must retain the above copyright
12 notice, this list of conditions and the following disclaimer.
13
14 * Redistributions in binary form must reproduce the above copyright
15 notice, this list of conditions and the following disclaimer in
16 the documentation and/or other materials provided with the
17 distribution.
18
19 * The names "Disney", "Walt Disney Pictures", "Walt Disney Animation
20 Studios" or the names of its contributors may NOT be used to
21 endorse or promote products derived from this software without
22 specific prior written permission from Walt Disney Pictures.
23
24 Disclaimer: THIS SOFTWARE IS PROVIDED BY WALT DISNEY PICTURES AND
25 CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
26 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
27 FOR A PARTICULAR PURPOSE, NONINFRINGEMENT AND TITLE ARE DISCLAIMED.
28 IN NO EVENT SHALL WALT DISNEY PICTURES, THE COPYRIGHT HOLDER OR
29 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND BASED ON ANY
33 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
36 */
37
41 #include "PtexPlatform.h"
42
43 #ifdef PTEX_STATIC
44 # define PTEXAPI
45 #else
46 # if defined(PTEX_PLATFORM_WINDOWS)
47 # if defined(PTEX_EXPORTS)
48 # define PTEXAPI __declspec(dllexport)
49 # else
50 # define PTEXAPI __declspec(dllimport)
51 # endif
52 # elif defined(PTEX_COMPILER_CLANG) || defined(PTEX_COMPILER_GCC) \
53 || defined(PTEX_COMPILER_ICC)
54 # if defined(PTEX_EXPORTS)
55 # define PTEXAPI __attribute__((visibility("default")))
56 # else
57 # define PTEXAPI
58 # endif
59 # else
60 # define PTEXAPI
61 # endif
62 #endif
63
64 #endif // PtexExports_h
PtexPlatform.h
Platform-specific classes, functions, and includes.