/** * @file * @author Steve Karg * @date 2022 * @brief Platform libc and compiler abstraction layer * * @section DESCRIPTION * * This libc and compiler abstraction layer assists with differences * between compiler and libc versions, capabilities, and standards. * * @section LICENSE * * Copyright (C) 2022 Steve Karg * * SPDX-License-Identifier: MIT */ #ifndef BACNET_SYS_PLATFORM_H #define BACNET_SYS_PLATFORM_H /* marking some code as 'deprecated' */ # if defined(_MSC_VER) # define BACNET_STACK_DEPRECATED(message) __declspec(deprecated(message)) #elif defined(__GNUC__) # define BACNET_STACK_DEPRECATED(message) __attribute__((deprecated(message))) # else # define BACNET_STACK_DEPRECATED(message) # endif # if defined(WIN32) || defined(WIN64) # define strcasecmp _stricmp # endif #endif