48 inline Type SoXtAbs(Type Val) {
49 return (Val < 0) ? -Val : Val;
53 inline Type SoXtMin(Type a, Type b) {
54 return (b < a) ? b : a;
58 inline Type SoXtMax(Type a, Type b) {
59 return (b > a) ? b : a;
63 inline Type SoXtClamp(Type val, Type min, Type max) {
64 return SoXtMax(min, SoXtMin(max, val));
68 inline void SoXtSwap(Type & a, Type & b) {
69 Type t = a; a = b; b = t;
76 #if ! defined(SOXT_MAJOR_VERSION)
77 #define SOXT_MAJOR_VERSION 1
79 #if ! defined(SOXT_MINOR_VERSION)
80 #define SOXT_MINOR_VERSION 4
82 #if ! defined(SOXT_MICRO_VERSION)
83 #define SOXT_MICRO_VERSION 0
85 #if ! defined(SOXT_BETA_VERSION)
86 #define SOXT_BETA_VERSION
88 #if ! defined(SOXT_VERSION)
89 #define SOXT_VERSION "1.4.0"
96 # error Leave the internal SOXT_DLL_API define alone.
128 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
129 # ifdef SOXT_INTERNAL
130 # ifdef SOXT_MAKE_DLL
131 # define SOXT_DLL_API __declspec(dllexport)
135 # define SOXT_DLL_API __declspec(dllimport)
137 # ifndef SOXT_NOT_DLL
138 # error Define either SOXT_DLL or SOXT_NOT_DLL as appropriate for your linkage! See Inventor/Xt/SoXtBasic.h for further instructions.
146 # define SOXT_DLL_API
149 #ifndef GUI_TOOLKIT_VERSION
150 #define GUI_TOOLKIT_VERSION "238"
153 #endif // ! SOXT_BASIC_H