Ocean
Loading...
Searching...
No Matches
Platform.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_PLATFORM_PLATFORM_H
9#define META_OCEAN_PLATFORM_PLATFORM_H
10
11#include "ocean/base/Base.h"
13
14namespace Ocean
15{
16
17namespace Platform
18{
19
20/**
21 * @defgroup platform Ocean Platform Library
22 * @{
23 * The Ocean Platform Library provides specific functionalities for available on specific platforms only.
24 * The library is platform dependent.
25 * @}
26 */
27
28/**
29 * @namespace Ocean::Platform Namespace of the Platform library.<p>
30 * The Namespace Ocean::Platform is used in the entire Ocean Platform Library.
31 */
32
33// Defines OCEAN_PLATFORM_EXPORT for dll export and import.
34#if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
35 #ifdef USE_OCEAN_PLATFORM_EXPORT
36 #define OCEAN_PLATFORM_EXPORT __declspec(dllexport)
37 #else
38 #define OCEAN_PLATFORM_EXPORT __declspec(dllimport)
39 #endif
40#else
41 #define OCEAN_PLATFORM_EXPORT
42#endif
43
44}
45
46}
47
48#endif // META_OCEAN_PLATFORM_PLATFORM_H
The namespace covering the entire Ocean framework.
Definition Accessor.h:15