Field3D
ns.h
Go to the documentation of this file.
1//----------------------------------------------------------------------------//
2
3/*
4 * Copyright (c) 2009 Sony Pictures Imageworks Inc
5 *
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the
17 * distribution. Neither the name of Sony Pictures Imageworks nor the
18 * names of its contributors may be used to endorse or promote
19 * products derived from this software without specific prior written
20 * permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
31 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
33 * OF THE POSSIBILITY OF SUCH DAMAGE.
34 */
35
36//----------------------------------------------------------------------------//
37
38#define FIELD3D_MAJOR_VER 1
39#define FIELD3D_MINOR_VER 7
40#define FIELD3D_MICRO_VER 3
41
42#define FIELD3D_VERSION_NS v1_7
43
44#ifdef FIELD3D_EXTRA_NAMESPACE
45
46# define FIELD3D_NAMESPACE_OPEN \
47 namespace FIELD3D_EXTRA_NAMESPACE { \
48 namespace Field3D { namespace FIELD3D_VERSION_NS {
49# define FIELD3D_NAMESPACE_HEADER_CLOSE \
50 } using namespace FIELD3D_VERSION_NS; } }
51# define FIELD3D_NAMESPACE_SOURCE_CLOSE \
52 } } }
53
54#else
55
56# define FIELD3D_NAMESPACE_OPEN \
57 namespace Field3D { namespace FIELD3D_VERSION_NS {
58# define FIELD3D_NAMESPACE_HEADER_CLOSE \
59 } using namespace FIELD3D_VERSION_NS; }
60# define FIELD3D_NAMESPACE_SOURCE_CLOSE \
61 } }
62
63#endif
64
65#ifdef WIN32
66
67# ifdef FIELD3D_STATIC
68# define FIELD3D_API
69# else
70# ifdef FIELD3D_EXPORT
71# define FIELD3D_API __declspec(dllexport)
72# else
73# define FIELD3D_API __declspec(dllimport)
74# endif
75# endif
76#else
77# define FIELD3D_API
78#endif
79
80#ifdef __APPLE__
81#include <Availability.h>
82#endif
83
84//----------------------------------------------------------------------------//