Go to the documentation of this file. 30 #ifndef CRL_MULTISENSE_DETAILS_PORTABILITY_HH 31 #define CRL_MULTISENSE_DETAILS_PORTABILITY_HH 33 #if __cplusplus > 199711L 35 #define CRL_CONSTEXPR constexpr 38 #define CRL_CONSTEXPR const 41 #if __cplusplus > 199711L 43 #define CRL_THREAD_LOCAL thread_local 44 #elif defined (__GNUC__) 46 #define CRL_THREAD_LOCAL __thread 47 #elif defined (_MSC_VER) 49 #define CRL_THREAD_LOCAL __declspec(thread) 51 #error "This compiler is not yet supported. Please contact Carnegie Robotics support at http://support.carnegierobotics.com for assistance." 54 #if defined (__GNUC__) 57 #define CRL_PRETTY_FUNCTION __PRETTY_FUNCTION__ 58 #elif defined (_MSC_VER) 60 #define CRL_PRETTY_FUNCTION __FUNCSIG__ 61 #elif __STDC_VERSION >= 199901L 63 #define CRL_PRETTY_FUNCTION __func__ 65 #error "This compiler is not yet supported. Please contact Carnegie Robotics support at http://support.carnegierobotics.com for assistance." 68 #if !defined(MULTISENSE_API) 69 #if defined (_MSC_VER) 70 #if defined (MultiSense_EXPORTS) 71 #define MULTISENSE_API __declspec(dllexport) 73 #define MULTISENSE_API __declspec(dllimport) 76 #define MULTISENSE_API 85 #define usleep(usec) Sleep((usec)/1000) 89 #define closesocket close