Ptex: PtexExports.h Source File

Ptex

PtexExports.h
Go to the documentation of this file.
1#ifndef PtexExports_h
2#define PtexExports_h
3/*
4PTEX SOFTWARE
5Copyright 2021 Disney Enterprises, Inc. All rights reserved
6
7Redistribution and use in source and binary forms, with or without
8modification, are permitted provided that the following conditions are
9met:
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
24Disclaimer: THIS SOFTWARE IS PROVIDED BY WALT DISNEY PICTURES AND
25CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
26BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
27FOR A PARTICULAR PURPOSE, NONINFRINGEMENT AND TITLE ARE DISCLAIMED.
28IN NO EVENT SHALL WALT DISNEY PICTURES, THE COPYRIGHT HOLDER OR
29CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND BASED ON ANY
33THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35OF 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.