Fusion360-Addons/usr/autodesk/CPP/include/Core/OSMacros.h
2021-10-31 19:11:02 +01:00

27 lines
877 B
C

//////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompanies this software.
//
//////////////////////////////////////////////////////////////////////////////
#pragma once
#if defined(_WINDOWS) || defined(_WIN64)
# define XI_WIN
#elif defined(__APPLE__) && defined(__MACH__)
# define XI_OSX
#else
# error "Operating System Not Supported By Neutron. Only Windows and Mac OS X Supported"
#endif
#if defined(XI_WIN)
# define XI_EXPORT __declspec(dllexport)
# define XI_IMPORT __declspec(dllimport)
#elif defined(XI_OSX)
# define XI_EXPORT __attribute__ ((visibility("default")))
# define XI_IMPORT
#endif