Go to the documentation of this file. 41 #ifndef CRL_MULTISENSE_DETAILS_PORTABILITY_HH 42 #define CRL_MULTISENSE_DETAILS_PORTABILITY_HH 44 #define CRL_UNUSED(var) (void)(var) 46 #if __cplusplus > 199711L 48 #define CRL_CONSTEXPR constexpr 51 #define CRL_CONSTEXPR const 54 #if __cplusplus > 199711L 56 #define CRL_THREAD_LOCAL thread_local 57 #elif defined (__GNUC__) 59 #define CRL_THREAD_LOCAL __thread 60 #elif defined (_MSC_VER) 62 #define CRL_THREAD_LOCAL __declspec(thread) 64 #error "This compiler is not yet supported. Please contact Carnegie Robotics support at http://support.carnegierobotics.com for assistance." 67 #if defined (__GNUC__) 70 #define CRL_PRETTY_FUNCTION __PRETTY_FUNCTION__ 71 #elif defined (_MSC_VER) 73 #define CRL_PRETTY_FUNCTION __FUNCSIG__ 74 #elif __STDC_VERSION >= 199901L 76 #define CRL_PRETTY_FUNCTION __func__ 78 #error "This compiler is not yet supported. Please contact Carnegie Robotics support at http://support.carnegierobotics.com for assistance." 81 #if !defined(MULTISENSE_API) 82 #if defined (_MSC_VER) 83 #if defined (MultiSense_EXPORTS) 84 #define MULTISENSE_API __declspec(dllexport) 86 #define MULTISENSE_API __declspec(dllimport) 89 #define MULTISENSE_API 98 #define usleep(usec) Sleep((usec)/1000) 102 #define closesocket close