]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/motif/private.h
make WinStruct<> available in non-GUI code too
[wxWidgets.git] / include / wx / motif / private.h
index 9246449cde5a98ddefd1240c9e49aea1d373fb37..5cf2b7d0e928e1ec6189934ac9f183767183d719 100644 (file)
@@ -38,6 +38,12 @@ class WXDLLEXPORT wxColour;
 
 #define wxCHECK_LESSTIF() ( __WXLESSTIF__ )
 
+// some compilers (e.g. Sun CC) give warnings when treating string literals as
+// (non const) "char *" but many Motif functions take "char *" parameters which
+// are really "const char *" so use this macro to suppress the warnings when we
+// know it's ok
+#define wxMOTIF_STR(x) wx_const_cast(char *, x)
+
 // ----------------------------------------------------------------------------
 // Miscellaneous functions
 // ----------------------------------------------------------------------------