]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/utils.h
fix OpenWatcom warning (patch from Jaakko Salli)
[wxWidgets.git] / include / wx / utils.h
index f5d087d38551108c80db19f2bb16f62276ff3bf9..9f7031537a2dc04a40c33486d3c4f327e2029de3 100644 (file)
@@ -54,6 +54,7 @@ class WXDLLIMPEXP_CORE wxWindowList;
 
 #define wxMax(a,b)            (((a) > (b)) ? (a) : (b))
 #define wxMin(a,b)            (((a) < (b)) ? (a) : (b))
+#define wxClip(a,b,c)         (((a) < (b)) ? (b) : (((a) > (c)) ? (c) : (a)))
 
 // wxGetFreeMemory can return huge amount of memory on 32-bit platforms as well
 // so to always use long long for its result type on all platforms which