ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
CVPlatform.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // Defines the following macros (depending on the compilation platform/settings)
11 // - CV_WINDOWS / CV_MAC_OS / CV_LINUX
12 // - CV_ENV32 / CV_ENV64
13 #if defined(_WIN32) || defined(_WIN64) || defined(WIN32)
14 #define CV_WINDOWS
15 #if defined(_WIN64)
16 #define CV_ENV_64
17 #else
18 #define CV_ENV_32
19 #endif
20 #else
21 #if defined(__APPLE__)
22 #define CV_MAC_OS
23 #else
24 #define CV_LINUX
25 #endif
26 #if defined(__x86_64__) || defined(__ppc64__) || defined(__arm64__)
27 #define CV_ENV_64
28 #else
29 #define CV_ENV_32
30 #endif
31 #endif