X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/532d575bd9baedbbf1c52907a66255975f527530..bcfa2b31849b797d5a0660b6a80c330f243a0211:/include/wx/debug.h?ds=inline

diff --git a/include/wx/debug.h b/include/wx/debug.h
index c944baba82..c2fc985ec2 100644
--- a/include/wx/debug.h
+++ b/include/wx/debug.h
@@ -198,7 +198,7 @@
 
  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 { \
@@ -249,4 +249,3 @@
 #endif /* __cplusplus */
 
 #endif  /*  _WX_DEBUG_H_ */
-