// Copyright 2019-2021 The MathWorks, Inc. /** * @file * @brief Provide additional typedefs for planningcodegen */ #ifndef PLANNINGCODEGEN_UTILS_HPP #define PLANNINGCODEGEN_UTILS_HPP #if defined(BUILDING_LIBMWPLANNINGCODEGEN) // should be defined by the mw build infrastructure #include "package.h" /* For DLL_EXPORT_SYM and EXTERN_C */ #include "tmwtypes.h" /* For uint32_T, boolean_T, etc */ #define PLANNINGCODEGEN_API DLL_EXPORT_SYM #else /* BUILDING_LIBMWPLANNINGCODEGEN */ /* For uint32_T, boolean_T, etc */ /* Consuming MATLAB C++ module should define MATLAB_BUILTINS token in its makefile */ #if defined(MATLAB_MEX_FILE) || defined(BUILDING_UNITTEST) || defined(MATLAB_BUILTINS) #include "tmwtypes.h" #else #include "rtwtypes.h" #endif #ifndef PLANNINGCODEGEN_API #define PLANNINGCODEGEN_API #endif #endif /* BUILDING_LIBMWPLANNINGCODEGEN */ // just in case EXTERN_C has not been defined #ifndef EXTERN_C #ifdef __cplusplus #define EXTERN_C extern "C" #else #define EXTERN_C #endif #endif #endif /* PLANNINGCODEGEN_UTILS_HPP */