]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/debug.h
don't pass NULL pointer to printf(), this crashes Solaris printf
[wxWidgets.git] / include / wx / debug.h
index c944baba82ff81b6a1a450af65b2c97406898d36..c2fc985ec281550dc06cee5954ffb6e280acfb6b 100644 (file)
 
  It may be used both within a function and in the global scope.
 */
-#ifdef __WATCOMC__
+#if defined(__WATCOMC__) && defined(__cplusplus)
     /* avoid "unused symbol" warning */
     #define wxCOMPILE_TIME_ASSERT(expr, msg) \
         class wxMAKE_UNIQUE_ASSERT_NAME { \
 #endif /* __cplusplus */
 
 #endif  /*  _WX_DEBUG_H_ */
-